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

Add readByteString cinterop extension #1435

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

JakeWharton
Copy link
Member

Closes #1431

@JakeWharton JakeWharton merged commit 55b7210 into master Feb 15, 2024
10 checks passed
@JakeWharton JakeWharton deleted the jw.read-byte-string.2024-02-14 branch February 15, 2024 19:23
val bytes = pointer.readByteString(0)
// Can't find a way to determine that readBytes was not called, so assume that if EMPTY was
// returned there was a short-circuit.
assertSame(EMPTY, bytes)
Copy link
Member

Choose a reason for hiding this comment

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

Nice test & nice comment

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.

Add COpaquePointer.readByteString(Long) helper
3 participants