addDecoderSentinel
Call Signature
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
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>