Skip to content

DecodeAllOptions

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

Options for decodeAll.

View

Chunk = View

readonly optional buffer?: DecodeBuffer<View, Chunk>

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

Holds and windows the input. Supplied rather than constructed here because the buffer is what pins the view type — ByteAccumulator for a byte decoder, TextBuffer for a text one.

Defaults to a ByteAccumulator sized to the input, which is correct only for a Uint8Array decoder.