Expand description
Length-prefixed framing codec for crabtalk wire protocol.
Wire format: [u32 BE length][protobuf payload]. The length is the byte
count of the payload only (not including the 4-byte header). Generic over
AsyncRead/AsyncWrite — used by both UDS and TCP transports.
Enums§
- Frame
Error - Errors that can occur during frame read/write.
Constants§
- MAX_
FRAME_ SIZE - Maximum frame size: 16 MiB.
Functions§
- read_
message - Read a length-prefixed protobuf frame and deserialize into a typed message.
- write_
message - Write a typed message as a length-prefixed protobuf frame.