Skip to main content

openbim_ifc_v0_1_model_open

Function openbim_ifc_v0_1_model_open 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_open( path: *const u8, path_len: usize, out_model: *mut OpenbimIfcModel, error_buffer: *mut u8, capacity: usize, ) -> OpenbimIfcStatus
Expand description

Read the STEP file at path (UTF-8, path_len bytes, no NUL needed) into a model that owns its bytes, and write the new model’s handle. An ifcZIP archive is read as openbim_ifc_v0_1_model_parse reads one.

Errors as openbim_ifc_v0_1_model_parse, plus Io when the file cannot be opened or read.

§Safety

path must be valid for path_len reads; out_model for one write; error_buffer, if non-null, for capacity writes.