Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare zlib's deflater for Kotlin/Native #1420

Merged
merged 5 commits into from
Feb 6, 2024
Merged

Conversation

swankjesse
Copy link
Member

No description provided.

import kotlinx.cinterop.ptr
import kotlinx.cinterop.useContents
import kotlinx.cinterop.usePinned
import platform.zlib.Z_BEST_COMPRESSION
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We get zlib for free? I would have expected a .def file or something

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know right?!

targetLimit = target.size
}

assertTrue(deflater.deflate())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests where this returns false

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@swankjesse swankjesse enabled auto-merge (squash) February 6, 2024 04:12
@swankjesse swankjesse merged commit c1aaf58 into master Feb 6, 2024
9 checks passed
@swankjesse swankjesse deleted the jwilson.0204.native_zip branch February 6, 2024 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants