getHiddenSuffixDecoder
Call Signature
Returns a decoder that skips hidden suffixed data after decoding the main value.
This decoder applies a list of void decoders after decoding the main value. The suffixed data is skipped during decoding without being exposed to the user.
For more details, see getHiddenSuffixCodec.
Type Parameters
| Type Parameter | Description |
|---|---|
TTo | The type of the main value being decoded. |
Parameters
| Parameter | Type | Description |
|---|---|---|
decoder | FixedSizeDecoder<TTo> | The decoder for the main value. |
suffixedDecoders | readonly FixedSizeDecoder<void>[] | A list of void decoders that produce the hidden suffix. |
Returns
FixedSizeDecoder<TTo>
A FixedSizeDecoder or VariableSizeDecoder that decodes values while ignoring the hidden suffix.
Example
Decoding a value with suffixed constants.
See
Call Signature
Returns a decoder that skips hidden suffixed data after decoding the main value.
This decoder applies a list of void decoders after decoding the main value. The suffixed data is skipped during decoding without being exposed to the user.
For more details, see getHiddenSuffixCodec.
Type Parameters
| Type Parameter | Description |
|---|---|
TTo | The type of the main value being decoded. |
Parameters
| Parameter | Type | Description |
|---|---|---|
decoder | Decoder<TTo> | The decoder for the main value. |
suffixedDecoders | readonly Decoder<void>[] | A list of void decoders that produce the hidden suffix. |
Returns
VariableSizeDecoder<TTo>
A FixedSizeDecoder or VariableSizeDecoder that decodes values while ignoring the hidden suffix.
Example
Decoding a value with suffixed constants.