Skip to main content

MAX_SVG_DOCUMENT_BYTES

Constant MAX_SVG_DOCUMENT_BYTES 

Source
pub const MAX_SVG_DOCUMENT_BYTES: usize = _ /* 33_554_432usize */;
Expand description

Largest SVG document a provider reads, in bytes. An SVG document is parsed whole, to as much as about 30 times its size at its densest (elements alone), so a larger one is refused before it is parsed, and a host refuses a larger file before reading it. Within it, a document parses to at most about 960 MiB.