Expand description
transport-neutral owned-kernel messages, usable from native and wasm32. Payloads contain version/request/op fields; stream length prefixes belong to native transport. No pointers, JS numbers for u64 IDs, or host worker identity cross this boundary. Handles belong to one worker/module incarnation.
Structs§
- Wire
Handle - Kernel-side token. Execution clients must separately enforce worker affinity.
Enums§
- Boolean
Operation - Numerical Boolean selector; wire codes are fixed by the adapter ABI.
- Kernel
Command - Numerical commands, independent of scheduling or IFC interpretation. Box/cylinder coordinates are evaluation metres; tolerances are explicit.
- Kernel
Response - A borrowed response; callers copy/consume it before disposing the transport buffer.
- Mesh
Stream - Protocol
Error
Constants§
- MAX_
MESH_ CHUNK_ SCALARS - MAX_
PAYLOAD_ BYTES - Original request and legacy response frame bound, including the 12-byte header.
- MAX_
REQUEST_ BYTES - MAX_
RESPONSE_ BYTES - MAX_
SWEEP_ CHUNK_ BYTES - Largest staged recipe chunk; a chunk request stays below the request bound.
- VERSION
Functions§
- decode_
response - Validate response framing fields before any result bytes are trusted.
- encode_
request - Encode one bounded payload. IEEE float bits and every u64 token are preserved. Geometric-domain validation is the executing boundary’s responsibility.