Skip to main content

wire_bytes

Function wire_bytes 

Source
pub(crate) fn wire_bytes(message: &Message) -> usize
Expand description

What a frame weighs on the wire: its JSON, which is what a page carries.

A Message serializes by construction - every shape crossed to get here - so a short count is a frame that cannot cross either way, and it stays as the count it reached rather than failing the frame around it.