Skip to main content

parse_frame

Function parse_frame 

Source
pub fn parse_frame(data: &[u8]) -> Result<(u8, &[u8])>
Expand description

Validate the CRC32C of an inbound frame and return the payload slice.

data must start at byte 0 (version byte). Returns (rpc_type, payload).