pub fn encode_frame_into(buf: &mut Vec<u8>, frame: &BinaryFrame) -> Result<()>Expand description
Encode a binary frame into a provided buffer (length prefix + body). The buffer is cleared first; capacity is preserved across calls. Used by per-session buffering to avoid per-call allocation.