Skip to main content

Module protocol

Module protocol 

Source
Expand description

Bounded, allocation-free graph discovery over complete MIDI SysEx messages.

A query receives Begin, node records, contiguous bytecode chunks, then End. Every reply echoes the request ID. A complete snapshot belongs to one revision. Each record is its own SysEx message so ordinary MIDI can run between records. The development namespace is F0 7D 57 47, followed by version, message kind, five little-endian seven-bit request-ID digits, packed payload, and F7. Payload groups contain a high-bit mask followed by up to seven low-bit bytes. This protocol does not serialize Rust memory layouts or private message enums.

Structs§

NodeRef
Borrowed description of one native process instance.
SnapshotMeta
Metadata captured together with the applied graph.

Enums§

ErrorCode
Target-side failure for a graph query.
Message
One query or response record. No variant owns or allocates storage.
ProtocolError
Why a received record or an encoding request was invalid.

Constants§

MAX_FRAME
Storage sufficient for any encoded record, including its MIDI framing.
MAX_PAYLOAD
Maximum decoded payload size for one record.
VERSION
Current remote protocol version, independent of the signal bytecode version.

Functions§

decode
Decode one complete SysEx record into the supplied payload buffer.
encode
Encode one complete SysEx record into caller-owned storage.
is_remote
Whether a complete or partial message starts with the remote namespace.
request_id
Read the correlation ID from a framed message without decoding its payload.