Skip to main content

Module protocol

Module protocol 

Source
Expand description

Fixed-layout little-endian boundary protocol.

Structs§

BatchEncoder
Reusable encoder. Once capacities are warmed, clear and finish allocate no memory.
HostEvent

Enums§

Mutation
PropertyValue
ProtocolError

Constants§

THEME_PAYLOAD_LEN
SetTheme after its header: four u16 fields, one font slot per type role, and the palette’s (offset, len) reference. 52 bytes, so the record is 56.

Functions§

decode_batch
decode_event
Decode one Renderer-to-Host event record.
encode_event
Test/mock helper for constructing a Renderer-to-Host event.