Function uniffi::ffi::rustbuffer::uniffi_rustbuffer_alloc
pub fn uniffi_rustbuffer_alloc(
size: u64,
call_status: &mut RustCallStatus
) -> RustBuffer
Expand description
This helper allocates a new byte buffer owned by the Rust code, and returns it
to the foreign-language code as a RustBuffer
struct. Callers must eventually
free the resulting buffer, either by explicitly calling uniffi_rustbuffer_free
defined
below, or by passing ownership of the buffer back into Rust code.