Package-level declarations

Types

Link copied to clipboard

A wrapper around a TypedArray (e.g. Uint8Array), Buffer, or any view-like value which exposes an inner ArrayBuffer, offset, and length.

Link copied to clipboard

A light wrapper around a guest buffer-like value, providing indexed access. This helper can be used to wrap the ArrayBuffer instances backing a Uint8Array or similar, for convenience when manipulating them.

Link copied to clipboard
open class NodeBlob : BufferAPI.Blob, ProxyObject

Implements the Blob type from the Node.js buffer built-in module. Blobs are read-only chunks of byte data which can be used to derive buffers, strings, and other objects.

Link copied to clipboard
Link copied to clipboard

A base implementation for the Node.js BufferInstance API, serving as a template for Buffer instances without specifying the backing ArrayBuffer value.

Link copied to clipboard

Implements the File class from the Node.js buffer built-in module. This class is basically a specialized NodeBlob with name and lastModified fields.

Link copied to clipboard

A NodeBufferInstance using a guest PolyglotValue with buffer elements as a backing buffer. Only the part of the buffer starting at byteOffset and ending at byteOffset + length is used in buffer operations.

Link copied to clipboard

A NodeBufferInstance backed by a NIO byteBuffer. The entirety of the buffer is used, thus byteOffset is always zero and length is set to the remaining bytes in the buffer.