@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
readonlyevents:InputEvent[]
Defined in: input/events.ts:94
queries
readonlyqueries:QueryResponse[]
Defined in: input/events.ts:95
rest
readonlyrest:Uint8Array
Defined in: input/events.ts:97
Incomplete trailing bytes carried to the next decode() call (=== state.carry).
state
readonlystate:DecoderState
Defined in: input/events.ts:99
The next decoder state to pass to the following decode() call.