Package-level declarations

Types

Link copied to clipboard
typealias AllowSharedBuffer = Buffer<ERROR CLASS: Symbol not found for ArrayBufferLike>
Link copied to clipboard
sealed external class Buffer<TArrayBuffer : ERROR CLASS: Symbol not found for ArrayBufferLike> : <ERROR CLASS> ERROR CLASS: Symbol not found for Uint8Array<TArrayBuffer>
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
typealias NonSharedBuffer = Buffer<ERROR CLASS: Symbol not found for ArrayBuffer>
Link copied to clipboard
sealed external interface TranscodeEncoding

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external val kMaxLength: Double
Link copied to clipboard
external val kStringMaxLength: Double

Functions

Link copied to clipboard
external fun isAscii(input: ERROR CLASS: Symbol not found for ArrayBuffer): Boolean
external fun isAscii(input: ERROR CLASS: Symbol not found for js.typedarrays.TypedArray<*, *, *, *>): Boolean
external fun isAscii(input: Buffer<*>): 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: ERROR CLASS: Symbol not found for ArrayBuffer): Boolean
external fun isUtf8(input: ERROR CLASS: Symbol not found for js.typedarrays.TypedArray<*, *, *, *>): Boolean
external fun isUtf8(input: Buffer<*>): 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): ERROR CLASS: Symbol not found for 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: ERROR CLASS: Symbol not found for Uint8Array<*>, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer<*>

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