Small, transport-neutral codec for the public Executor Protocol v1.
The durable Event codec is deliberately not used here. Executor peers speak length-prefixed UTF-8 JSON so a non-BEAM runtime never has to understand ETF or Tay's on-disk value representation.
Summary
Functions
Decodes all complete frames in a byte buffer, retaining an incomplete tail.
Decodes and validates a single JSON protocol envelope.
Validates the common version, type, and request_id envelope fields.
Encodes one JSON message with an unsigned 32-bit big-endian length prefix.
Encodes one JSON-safe value and verifies its independent byte budget.
Validates portable JSON values without admitting arbitrary BEAM terms.
Types
Functions
Decodes all complete frames in a byte buffer, retaining an incomplete tail.
Decodes and validates a single JSON protocol envelope.
Validates the common version, type, and request_id envelope fields.
Encodes one JSON message with an unsigned 32-bit big-endian length prefix.
Encodes one JSON-safe value and verifies its independent byte budget.
Validates portable JSON values without admitting arbitrary BEAM terms.