Functions
addDecoderSentinel
Call Signature
addDecoderSentinel<
TTo
>(decoder
,sentinel
):FixedSizeDecoder
<TTo
>
Creates a decoder that continues reading until
a given Uint8Array
sentinel is found.
See addCodecSentinel for more information.
Type Parameters
Type Parameter | Description |
---|---|
TTo | The type of the decoded value. |
Parameters
Parameter | Type |
---|---|
decoder | FixedSizeDecoder <TTo > |
sentinel | ReadonlyUint8Array |
Returns
FixedSizeDecoder
<TTo
>
See
Call Signature
addDecoderSentinel<
TTo
>(decoder
,sentinel
):VariableSizeDecoder
<TTo
>
Creates a decoder that continues reading until
a given Uint8Array
sentinel is found.
See addCodecSentinel for more information.
Type Parameters
Type Parameter | Description |
---|---|
TTo | The type of the decoded value. |
Parameters
Parameter | Type |
---|---|
decoder | Decoder <TTo > |
sentinel | ReadonlyUint8Array |
Returns
VariableSizeDecoder
<TTo
>