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
fun ByteString.toArrayBuffer(): ArrayBuffer

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

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

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

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

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