find_ifcproject_id

Function find_ifcproject_id 

Source
pub fn find_ifcproject_id(content: &[u8]) -> Option<u32>
Expand description

Find the singleton IFCPROJECT’s express id by SIMD substring search — no full entity scan. Returns None when the file has no project.

A refused id (issue #3421: an IFCPROJECT express id above u32::MAX) is reported through ifc_lite_core::parser::report_oversized_ids — the same sink the definition scanner uses (issue #3395/#3752) — because it is exactly that class of event: this function backtracks from IFCPROJECT( to the record’s OWN id, not to a reference into another entity, so a refusal here is indistinguishable in kind from a scan refusing to index the record at all. Left unreported, it would default the file’s unit scales (see resolve_unit_scales) with the exact silent-1000×-oversized symptom issue #1367 already fixed for the “not found at all” case.