Skip to content

createDelimitedDecoder

createDelimitedDecoder(delimiter, options?): Decoder<Uint8Array<ArrayBufferLike>>

Defined in: packages/format-core/src/codecs/delimited-decoder.ts:30

Creates the read half of delimiter-terminated framing for binary payloads.

Use when values end in a fixed byte sequence that is not a newline, such as a NUL-terminated record stream.

A factory rather than a class because the scan restarts from the front of the window on every call — there is no cross-call state to hold.

Uint8Array

The byte sequence that terminates each value. Must not be empty.

DelimitedDecoderOptions

See DelimitedDecoderOptions.

Decoder<Uint8Array<ArrayBufferLike>>