Skip to main content

lrtmp2_error_string

Function lrtmp2_error_string 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lrtmp2_error_string(code: i32) -> *const u8
Expand description

Get error string (FFI-compatible).

Takes a raw i32 rather than ErrorCode so that an out-of-range value from a caller (e.g. a weakly-typed binding forwarding an unrelated int) cannot construct an invalid enum discriminant, which would be undefined behavior.