Skip to main content

MAX_VALUES

Constant MAX_VALUES 

Source
pub const MAX_VALUES: usize = _ /* 16_777_216usize */;
Expand description

Most values (fields and array elements) one stream may decode. A value takes about 40 bytes in memory however few it took in the file (a bool array packs eight in a byte), so the size of the input alone doesn’t bound what parsing allocates: a small compressed entry could otherwise ask for tens of gigabytes. Real documents stay far below.