Skip to main content

frame_byte_estimate

Function frame_byte_estimate 

Source
pub fn frame_byte_estimate(f: &SshFrame) -> u64
Expand description

A frame’s cost against MAX_BYTES_PER_CONN, without re-encoding: a chunk’s data length, the total_bytes a header declares, or 64 for a small control frame. An upload is charged its declared size once, by its header; the chunks it then reads are not charged again.