Skip to main content

ffi_string_alloc

Function ffi_string_alloc 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ffi_string_alloc( str: *const u8, len: usize, ) -> FfiString
Expand description

Allocate and copy a UTF-8 string of len bytes starting at str.

Exported as: ffi_string_alloc

§Safety

str must be valid for len bytes.