Skip to content

Add readByteString cinterop extension#1435

Merged
JakeWharton merged 1 commit intomasterfrom
jw.read-byte-string.2024-02-14
Feb 15, 2024
Merged

Add readByteString cinterop extension#1435
JakeWharton merged 1 commit intomasterfrom
jw.read-byte-string.2024-02-14

Conversation

@JakeWharton
Copy link
Copy Markdown
Collaborator

Closes #1431

@JakeWharton JakeWharton force-pushed the jw.read-byte-string.2024-02-14 branch from 46957ae to 6e119e8 Compare February 15, 2024 18:49
@JakeWharton JakeWharton merged commit 55b7210 into master Feb 15, 2024
@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
Copy Markdown
Collaborator

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