Skip to main content

document_limit

Function document_limit 

Source
pub fn document_limit(
    source: &ProviderSource,
    head: &[u8],
) -> Option<(usize, &'static str)>
Expand description

The most bytes a provider reads of a whole-file format (SVG, Lottie JSON, dotLottie), with a name for the file kind; None for streamed formats. head is the file’s start, used to tell a dotLottie ZIP from Lottie JSON.