Skip to main content

openbim_ifc_v0_1_model_by_guid

Function openbim_ifc_v0_1_model_by_guid 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_by_guid( model: OpenbimIfcModel, global_id: *const u8, global_len: usize, out_id: *mut u64, ) -> OpenbimIfcStatus
Expand description

The entity whose GlobalId is global_id (UTF-8, global_len bytes), written to out_id; NoValue when none carries it.

The first lookup indexes every GlobalId once; later ones reuse the index until the model changes. InvalidValue for text that is not a GlobalId, InvalidModel when several entities carry it (the last error names them), UnsupportedSchema.

ยงSafety

global_id valid for global_len reads; out_id valid for one write.