Functions
getBytesDecoder
getBytesDecoder():
VariableSizeDecoder
<ReadonlyUint8Array
>
Returns a decoder for raw byte arrays.
This decoder reads byte arrays exactly as provided without modification.
The decoded byte array extends from the provided offset to the end of the input.
- To enforce a fixed size, consider using fixDecoderSize.
- To add a size prefix, use addDecoderSizePrefix.
- To add a sentinel value, use addDecoderSentinel.
For more details, see getBytesCodec.
Returns
VariableSizeDecoder
<ReadonlyUint8Array
>
A VariableSizeDecoder<ReadonlyUint8Array>
.
Example
Decoding a byte array as-is.