getUtf8Decoder
Returns a decoder for UTF-8 strings.
This decoder deserializes UTF-8 encoded strings from a byte array. It reads all available bytes starting from the given offset.
For more details, see getUtf8Codec.
Parameters
| Parameter | Type | Description |
|---|---|---|
config? | Utf8CodecConfig | Optional configuration for the decoder. |
Returns
VariableSizeDecoder<string>
A VariableSizeDecoder<string> for decoding UTF-8 strings.
Example
Decoding a UTF-8 string.