ybinary_destroy

Function ybinary_destroy 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ybinary_destroy(ptr: *mut c_char, len: u32)
Expand description

Frees all memory-allocated resources bound to a given binary returned from Yrs document API. Unlike strings binaries are not null-terminated and can contain null characters inside, therefore a size of memory to be released must be explicitly provided. Yrs binaries don’t use libc malloc, so calling free() on them will fault.