Skip to main content

silicera_variant_select

Function silicera_variant_select 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn silicera_variant_select( profile: *mut SiliceraProfile, size_bytes: c_ulonglong, buf: *mut c_char, buf_len: usize, ) -> c_int
Expand description

Select a variant name for size_bytes into buf (NUL-terminated).

Writes at most buf_len bytes including the trailing NUL.

§Safety

profile must be a handle from silicera_profile_load (or null → -1). buf must point to a writable buffer of buf_len bytes when buf_len > 0.