Options for buffer codec
Current buffer
Current offset of the buffer
Decode a single value from current offset
Value decoding options
Decoded value
Encode a 32-bit float
32-bit numeric value
Current instance of BufferCodec
Encode a 64-bit float
64-bit numeric value
Current instance of BufferCodec
Encode a signed 16-bit number
16-bit numeric value
Current instance of BufferCodec
Encode a signed 32-bit number
32-bit numeric value
Current instance of BufferCodec
Encode a signed 8-bit number
8-bit numeric value
Current instance of BufferCodec
Decode the whole buffer using provided template
Template to use for buffer decoding
Decoded object
Encode all queued values and return resulting buffer
Encoded buffer
Sets string encoding
String encoding (either 'utf8' or 'utf16')
Current instance of BufferCodec
Encodes a string value
String to encode
String encoding (either 'utf8' or 'utf16'). This parameter takes precedence over the general encoding property set on BufferCodec instance
Current instance of BufferCodec
Encode an unsigned 16-bit number
16-bit numeric value
Current instance of BufferCodec
Encode an unsigned 32-bit number
32-bit numeric value
Current instance of BufferCodec
Encode an unsigned 8-bit number
8-bit numeric value
Current instance of BufferCodec
Creates a new BufferCodec instance from given buffer
Either ArrayBuffer or Buffer
A new instance of BufferCodec
Generated using TypeDoc
Creates a new instance of BufferCodec