Package-level declarations
Types
A wrapper around a TypedArray
(e.g. Uint8Array
), Buffer
, or any view-like value which exposes an inner ArrayBuffer
, offset, and length.
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.
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.
A base implementation for the Node.js BufferInstance API, serving as a template for Buffer instances without specifying the backing ArrayBuffer
value.
Implements the File
class from the Node.js buffer
built-in module. This class is basically a specialized NodeBlob with name and lastModified fields.
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.
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.