Skip to content

@jsvision/core / DecodeResult

Interface: DecodeResult

Defined in: input/events.ts:93

The result of one decode/flush call.

Thread decoding forward with state = result.state: it carries both the incomplete trailing bytes and any in-progress bracketed paste, so a sequence or paste split across chunks survives. rest is a convenience equal to state.carry (the incomplete trailing bytes).

Properties

events

readonly events: InputEvent[]

Defined in: input/events.ts:94


queries

readonly queries: QueryResponse[]

Defined in: input/events.ts:95


rest

readonly rest: Uint8Array

Defined in: input/events.ts:97

Incomplete trailing bytes carried to the next decode() call (=== state.carry).


state

readonly state: DecoderState

Defined in: input/events.ts:99

The next decoder state to pass to the following decode() call.