getShortU16Decoder
Returns a decoder for shortU16 values.
This decoder deserializes shortU16 values from 1 to 3 bytes.
The number of bytes used depends on the encoded value.
Non-minimal ("alias") encodings — where a zero-valued terminating byte
follows the first byte, so the value could have been encoded in fewer
bytes — are rejected, matching Agave's short_vec decoder.
For more details, see getShortU16Codec.
Returns
VariableSizeDecoder<number>
A VariableSizeDecoder<number> for decoding shortU16 values.
Example
Decoding a shortU16 value.