Skip to main content

MAX_INPUT

Constant MAX_INPUT 

Source
pub const MAX_INPUT: usize = _ /* 536_870_912usize */;
Expand description

The most input a document can hold. Spans keep offsets in 30 bits. The parse buffer, which holds the strings the parser had to change, can outgrow the input (each NUL it replaces is three bytes of U+FFFD), so a string that would take it past 30 bits goes in a string of its own instead.