Kit
Functions

addDecoderSizePrefix

Call Signature

addDecoderSizePrefix<TTo>(decoder, prefix): FixedSizeDecoder<TTo>

Bounds the size of the nested decoder by reading its encoded prefix.

See addCodecSizePrefix for more information.

Type Parameters

Type ParameterDescription
TToThe type of the decoded value.

Parameters

ParameterType
decoderFixedSizeDecoder<TTo>
prefixFixedSizeNumberDecoder

Returns

FixedSizeDecoder<TTo>

See

addCodecSizePrefix

Call Signature

addDecoderSizePrefix<TTo>(decoder, prefix): VariableSizeDecoder<TTo>

Bounds the size of the nested decoder by reading its encoded prefix.

See addCodecSizePrefix for more information.

Type Parameters

Type ParameterDescription
TToThe type of the decoded value.

Parameters

ParameterType
decoderDecoder<TTo>
prefixNumberDecoder

Returns

VariableSizeDecoder<TTo>

See

addCodecSizePrefix

On this page