std::encoding::wireWire format encoding and decoding.
import std::encoding::wire;
Low-level functions for Hew's binary wire protocol, used by the runtime for actor-to-actor message serialization across network boundaries.
Most users should use wire type declarations instead of calling
these functions directly.
encode_headerEncode a wire format header for a message.
payload_len is the byte length of the serialized payload.
flags controls optional features (e.g., 1 for compression).
Returns the 10-byte encoded header as a bytes value.
decode_headerDecode a wire format header from a bytes buffer.
Returns the payload length on success, or -1 if the header is invalid.
validate_headerValidate that a bytes buffer contains a well-formed wire header.
Returns true if the header is valid.