build_entity_index

Function build_entity_index 

Source
pub fn build_entity_index<T>(
    content: &T,
) -> HashMap<u32, (usize, usize), FxBuildHasher>
where T: AsRef<[u8]> + ?Sized,
Expand description

Build an entity index from content.

This intentionally shares EntityScanner’s HEADER skipping, quoted-string semantics, and its #3395 refusal of instance names wider than u32 (reported here, not handed back as a quietly short index), so scan and lookup agree.