#[unsafe(no_mangle)]pub unsafe extern "C" fn openbim_ifc_v0_1_format_length(
value: f64,
unit: *const u8,
unit_len: usize,
style: u32,
places: u32,
display_unit: *const u8,
display_unit_len: usize,
flags: u32,
buffer: *mut u8,
capacity: usize,
out_required: *mut usize,
) -> OpenbimIfcStatusExpand description
Write value, a length in the unit named unit, as NUL-terminated
text. style is OPENBIM_IFC_LENGTH_FORMAT_DECIMAL (in display_unit,
or the value’s unit when display_unit is null, with places decimals),
OPENBIM_IFC_LENGTH_FORMAT_FEET_INCHES or
OPENBIM_IFC_LENGTH_FORMAT_INCHES (rounded to 1/places of an inch);
flags: OPENBIM_IFC_LENGTH_FORMAT_SUPPRESS_ZERO_INCHES. Needs no
model. InvalidValue for a unit name, a zero denominator or a length
too large; TypeMismatch for a unit that is not a length;
OutOfRange for more than 255 decimals; InvalidArgument for an
unknown style or flag, or text that is not UTF-8.
§Safety
unit valid for unit_len; display_unit null or valid for
display_unit_len; buffer and out_required as for
openbim_ifc_v0_1_new_guid.