Skip to main content

body_bytes

Function body_bytes 

Source
pub fn body_bytes(body: &str) -> usize
Expand description

What a full comment’s body costs a read: its text as the seed runner puts it between its element’s tags (shown_body: tidy, escaped, lookalike tags marked), but never less than its raw bytes, which MCP and REST send (the review of 0.107.3: 65,536 \n were charged nothing and sent as about 128 KB of JSON). The server’s comment budget charges this, and sends it as a stub’s size. Since 0.108 a line break costs a byte, as it is shown: the │ that started each line after the first is gone, the element’s tags close the body instead