Buffer

A Node.js object holding a fixed-length run of raw bytes stored outside the V8 heap; more generally, any memory that holds data on its way somewhere.

In more detail

Buffer is a subclass of Uint8Array, so it works anywhere a typed array does and adds methods such as toString("hex") and Buffer.from(text). Streams also keep internal buffers of chunks waiting to be read or written, limited by highWaterMark.

Related terms

Taught in

References