Skip to content

decodeAll

decodeAll<T, W>(decoder, input, options?): DecodeAllResult<T, Uint8Array<ArrayBufferLike>, W>

Defined in: packages/format-core/src/decode-all.ts:59

Decode every value a repeatable-item format contains in one complete input — a CBOR sequence (RFC 8742), concatenated netstrings, the rows of a CSV document, or any other back-to-back sequence of values.

This is the synchronous face of a Decoder: a package’s parse* utility is built on this rather than reimplementing the grammar. Built on DecodeDriver, so a recoverable error is collected and decoding continues instead of aborting on the first bad item.

T

W = never

Decoder<T, Uint8Array<ArrayBufferLike>, W>

Uint8Array

DecodeAllOptions<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>

DecodeAllResult<T, Uint8Array<ArrayBufferLike>, W>

decodeAll<T, View, Chunk, W>(decoder, input, options): DecodeAllResult<T, Chunk, W>

Defined in: packages/format-core/src/decode-all.ts:64

Decode every value a repeatable-item format contains in one complete input — a CBOR sequence (RFC 8742), concatenated netstrings, the rows of a CSV document, or any other back-to-back sequence of values.

This is the synchronous face of a Decoder: a package’s parse* utility is built on this rather than reimplementing the grammar. Built on DecodeDriver, so a recoverable error is collected and decoding continues instead of aborting on the first bad item.

T

View

Chunk

W = never

Decoder<T, View, W>

Chunk

Required<DecodeAllOptions<View, Chunk>>

DecodeAllResult<T, Chunk, W>