pub fn load_resources<'a>(
    data: &'a [u8]
) -> Result<ResourceParserIterator<'a>, &'static str>
Expand description

Parse a packed resources data structure.

The data structure is parsed lazily via an iterator that emits reconstructed Resource instances.

Performance note: we once attempted to switch to anyhow for error handling and this decreased performance by ~15%. Given the performance sensitivity of this code, we need to keep error handling primitive.