Skip to main content

Module buffer

Module buffer 

Source
Expand description

Node Buffer (global + require('buffer').Buffer). A Buffer is a plain object tagged @@native = "Buffer" whose bytes live in a hidden @@bytes array; length is an enumerable data property so buf.length reads directly.

Constants§

BLOB_METHODS
Method names for Blob/File instances (parent instance_has_method).
MODULE_METHODS
Free functions of the buffer module itself (require('buffer').atob, …), as opposed to the Buffer constructor’s static methods above. Needs the parent "buffer" routing arm (see final report).
STATIC_METHODS

Functions§

blob_call
Blob/File instance methods. text/arrayBuffer/bytes return already- resolved Promises (Node’s async accessors); slice returns a new Blob. arrayBuffer/bytes resolve with a Buffer (this runtime’s byte container) rather than a bare ArrayBuffer/Uint8Array.
construct_blob
new Blob(parts[, options]).
construct_file
new File(parts, name[, options]).
from_bytes
Build a Buffer value from raw bytes.
instance_call
Buffer instance methods.
module_call
Dispatch a require('buffer').<method> free function.
static_call