#[unsafe(no_mangle)]pub unsafe extern "C" fn openbim_ifc_v0_1_model_open_mapped(
path: *const u8,
path_len: usize,
out_model: *mut OpenbimIfcModel,
error_buffer: *mut u8,
capacity: usize,
) -> OpenbimIfcStatusExpand description
Read the STEP file at path through a memory mapping, and write the new
model’s handle. No copy of the file is made, and its pages belong to the
page cache rather than the process heap.
§Safety
As openbim_ifc_v0_1_model_open, and additionally: the file must not
be modified or truncated until the model is destroyed. The model decodes
entities from the mapping on access; a changed file makes that fail
(reported as Panic), end the process (SIGBUS on truncation), or read
other content.