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.
Parameters
Section titled “Parameters”delimiter
Section titled “delimiter”Uint8Array
The byte sequence that terminates each value. Must not be empty.
options?
Section titled “options?”Returns
Section titled “Returns”Decoder<Uint8Array<ArrayBufferLike>>