Buffer

Buffer

Source:

[W.I.P] This object is used to represent binary data in the form of a sequence of bytes.

Requires

Classes

byteLength
from

Methods

(static) this.toJSON() → {Binary}

Source:

[W.I.P]

Returns:
Type
Binary

(static) this.toString(encodingopt, startopt, endopt) → {string}

Source:

Decodes buf to a string according to the specified character encoding.

Parameters:
Name Type Attributes Default Description
encoding string <optional>
'utf8'

ascii, utf8, utf16le, ucs2, base64, latin1, binary, hex

start number <optional>
0
end number <optional>

Default: buf.length

Returns:
Type
string

(static) this.values() → {Binary}

Source:
Returns:
Type
Binary