Skip to main content

control_length_is_bounded

Function control_length_is_bounded 

Source
const fn control_length_is_bounded(draft: DraftVersion) -> bool
Expand description

Whether MAX_CONTROL_PAYLOAD bounds a control message length this draft frames as a varint. See that constant for why 07-10 are bounded and 23 is not.

Drafts 11-22 frame the length in sixteen bits and never reach the varint read; they answer true, the bound being the one their framing already keeps.