Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface BufferConstants
Link copied to clipboard
sealed external interface BufferEncoding
Link copied to clipboard
sealed external interface BufferToJSONResult
Link copied to clipboard
Link copied to clipboard
sealed external interface TranscodeEncoding

Properties

Functions

Link copied to clipboard
external fun isAscii(input: ArrayBuffer): Boolean
external fun isAscii(input: TypedArray<*, *, *, *>): Boolean

This function returns true if input contains only valid ASCII-encoded data, including the case in which input is empty.

Link copied to clipboard
external fun isUtf8(input: ArrayBuffer): Boolean
external fun isUtf8(input: TypedArray<*, *, *, *>): Boolean

This function returns true if input contains only valid UTF-8-encoded data, including the case in which input is empty.

Link copied to clipboard
external fun resolveObjectURL(id: String): Blob?

Resolves a 'blob:nodedata:...' an associated Blob object registered using a prior call to URL.createObjectURL().

Link copied to clipboard
external fun transcode(source: Uint8Array<*>, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): NonSharedBuffer

Re-encodes the given Buffer or Uint8Array instance from one character encoding to another. Returns a new Buffer instance.