Package-level declarations

Functions

Link copied to clipboard
@UnsafeByteStringApi
fun ByteArray.asByteString(): ByteString

Returns a ByteString view of this ByteArray, without copying data.

Link copied to clipboard

Exposes the contents of this ByteString as a read-only ByteBuffer without copying data.

Link copied to clipboard
fun ByteBuffer.readByteString(): ByteString

Reads all remaining bytes in this ByteBuffer into a new ByteString.

Link copied to clipboard
fun ByteString.toArrayBuffer(): ArrayBuffer

Creates a new ArrayBuffer containing the data copied from this ByteString.

Link copied to clipboard
fun <Error class: unknown class>.toByteString(): ByteString

Creates a new ByteString containing the data copied from this NSData.

fun ArrayBuffer.toByteString(): ByteString

Creates a new ByteString containing the data copied from this ArrayBuffer.

Link copied to clipboard
fun ByteString.toNSData(): <Error class: unknown class>

Creates a new NSData containing the data copied from this ByteString.

Link copied to clipboard
@UnsafeByteStringApi
fun ByteString.unsafeBackingByteArray(): ByteArray

Returns the backing ByteArray of this ByteString, without copying data.