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/Fileinstances (parentinstance_has_method). - MODULE_
METHODS - Free functions of the
buffermodule itself (require('buffer').atob, …), as opposed to theBufferconstructor’s static methods above. Needs the parent"buffer"routing arm (see final report). - STATIC_
METHODS
Functions§
- blob_
call Blob/Fileinstance methods.text/arrayBuffer/bytesreturn already- resolved Promises (Node’s async accessors);slicereturns a newBlob.arrayBuffer/bytesresolve with aBuffer(this runtime’s byte container) rather than a bareArrayBuffer/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