@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
readonlycarry:Uint8Array
Defined in: input/events.ts:115
Incomplete trailing bytes from the previous call (bounded, so a runaway sequence cannot grow it).
paste
readonlypaste:PasteState
Defined in: input/events.ts:117
In-progress bracketed-paste accumulation.
resync
readonlyresync: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.