[][src]Function croaring_sys_mw::ra_portable_deserialize

pub unsafe extern "C" fn ra_portable_deserialize(
    ra: *mut roaring_array_t,
    buf: *const c_char,
    maxbytes: usize,
    readbytes: *mut usize
) -> bool

read a bitmap from a serialized version. This is meant to be compatible with the Java and Go versions. maxbytes indicates how many bytes available from buf. When the function returns true, roaring_array_t is populated with the data and *readbytes indicates how many bytes were read. In all cases, if the function returns true, then maxbytes >= *readbytes.