Buffer
The Buffer class is a subclass of Uint8Array that provides additional methods for working with binary data.
It is compatible with Node.js Buffer.
See Node.js Buffer documentation.
Supported Properties
- constructor
- length
- name
- prototype
- TYPED_ARRAY_SUPPORT
- poolSize
- from
- alloc
- allocUnsafe
- allocUnsafeSlow
- isBuffer
- compare
- isEncoding
- concat
- byteLength
Supported Prototype Properties
- parent
- offset
- swap16
- swap32
- swap64
- toString
- toLocaleString
- equals
- inspect
- compare
- includes
- indexOf
- lastIndexOf
- write
- toJSON
- slice
- readUIntLE
- readUintLE
- readUIntBE
- readUintBE
- readUInt8
- readUint8
- readUInt16LE
- readUint16LE
- readUInt16BE
- readUint16BE
- readUInt32LE
- readUint32LE
- readUInt32BE
- readUint32BE
- readBigUInt64LE
- readBigUInt64BE
- readIntLE
- readIntBE
- readInt8
- readInt16LE
- readInt16BE
- readInt32LE
- readInt32BE
- readBigInt64LE
- readBigInt64BE
- readFloatLE
- readFloatBE
- readDoubleLE
- readDoubleBE
- writeUIntLE
- writeUintLE
- writeUIntBE
- writeUintBE
- writeUInt8
- writeUint8
- writeUInt16LE
- writeUint16LE
- writeUInt16BE
- writeUint16BE
- writeUInt32LE
- writeUint32LE
- writeUInt32BE
- writeUint32BE
- writeBigUInt64LE
- writeBigUInt64BE
- writeIntLE
- writeIntBE
- writeInt8
- writeInt16LE
- writeInt16BE
- writeInt32LE
- writeInt32BE
- writeBigInt64LE
- writeBigInt64BE
- writeFloatLE
- writeFloatBE
- writeDoubleLE
- writeDoubleBE
- copy
- fill