Function axiolid_v0_4_context_last_error_message

Source
#[no_mangle]
pub unsafe extern "C" fn axiolid_v0_4_context_last_error_message(
    context: AxiolidContextHandle,
    buffer: *mut u8,
    capacity: usize,
    out_required: *mut usize,
) -> AxiolidStatus
Expand description

Copy the last error message into a caller-owned UTF-8 buffer.

out_required receives the byte count including the trailing NUL. Passing a null buffer with zero capacity is the supported sizing query.

ยงSafety

Every non-null pointer must be aligned and valid for the documented read or write extent.