Expand description
Length-prefixed framing for byte streams: a big-endian u32 length, then the message.
Structs§
- Frame
Decoder - Collects bytes as they are read and hands out whole messages.
Constants§
- MAX_
FRAME - Largest message accepted (8 MiB): a long conversation fits, a runaway one does not.
Functions§
- encode_
frame - One framed message, ready to write.