pub fn parse_frames(buf: &[u8]) -> Result<(Vec<Frame>, usize), RpcError>Expand description
Reads frames from a byte buffer. Returns parsed frames and the number of bytes consumed.
This is a streaming parser: it handles partial frames by returning only complete frames and leaving remaining bytes unconsumed.