Skip to content

@jsvision/core / DecoderState

Interface: DecoderState

Defined in: input/events.ts:113

The opaque carry threaded between decode calls. Create the first one with createDecoderState(), then feed each call's result.state into the next.

Properties

carry

readonly carry: Uint8Array

Defined in: input/events.ts:115

Incomplete trailing bytes from the previous call (bounded, so a runaway sequence cannot grow it).


paste

readonly paste: PasteState

Defined in: input/events.ts:117

In-progress bracketed-paste accumulation.


resync

readonly resync: boolean

Defined in: input/events.ts:123

True while discarding the tail of an oversized, unterminated sequence: after the carry bound trips, subsequent bytes are dropped (no events) until the next ESC resynchronises the stream.