Skip to main content

openbim_ifc_v0_1_graphs_payload

Function openbim_ifc_v0_1_graphs_payload 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_graphs_payload( graphs: OpenbimIfcGraphs, index: usize, buffer: *mut u8, capacity: usize, out_required: *mut usize, ) -> OpenbimIfcStatus
Expand description

Copy the wire payload of graph index – JSON text without a trailing NUL, or CBOR bytes – into buffer (capacity bytes), after writing the size needed (its record’s payload size) to out_required; 0 for a product with no graph. OutOfRange for an index past the set.

§Safety

As for the other buffer calls: buffer valid for capacity writes when non-null, out_required for one.