Skip to main content

view_message

Function view_message 

Source
pub fn view_message(bytes: &[u8]) -> Option<WireView<'_>>
Expand description

Open a borrowed, zero-alloc view over bytes. None for a compressed or JSON message (those must be inflated/decoded first — the view is over raw native bytes) or a malformed frame. Reads any single field in place afterward.