Function yrs::ybinary_destroy[][src]

#[no_mangle]
pub unsafe extern "C" fn ybinary_destroy(
    ptr: *mut c_uchar,
    len: c_int
)
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.