Skip to main content

Module codec

Module codec 

Source
Expand description

VectorizerRPC frame codec — [u32 LE len][MessagePack body].

Wire spec § 1: docs/specs/VECTORIZER_RPC.md. Ported from ../Synap/synap-server/src/protocol/synap_rpc/codec.rs byte-for-byte so a SynapRPC-conversant client only needs to swap command names to talk to a Vectorizer server.

Constants§

MAX_BODY_SIZE
Maximum body size accepted on the wire. Frames declaring a larger length crash the connection rather than allocate. 64 MiB is the documented cap in wire spec § 1.

Functions§

decode_frame
Decode one frame from a byte slice.
encode_frame
Encode any Serialize value into a length-prefixed MessagePack frame.
read_request
Read one Request frame from an async reader.
read_response
Read one Response frame from an async reader. Used by client implementations and round-trip tests.
write_request
Write a Request frame to an async writer.
write_response
Write a Response frame to an async writer.