Package-level declarations
Types
Link copied to clipboard
Provides the prototype for the Node.js Buffer
type, and acts as a meta-object for it, allowing the creation of new instances via "static" methods. A single instance of this class should be injected into a guest context to act as the Buffer
symbol itself.
Link copied to clipboard
Represents an instance of the Buffer
type in a Node.js-compatible runtime. Buffer instances are views over an ArrayBuffer
, which is a PolyglotValue with buffer elements; the byteOffset property indicates at which index in the backing array buffer the view starts, and the length specifies the number of bytes available.