pomp_decoder_read_cbuf

Function pomp_decoder_read_cbuf 

Source
pub unsafe extern "C" fn pomp_decoder_read_cbuf(
    dec: *mut pomp_decoder,
    v: *mut *const c_void,
    n: *mut u32,
) -> c_int
Expand description

Decode a buffer without any extra allocation or copy. @param dec : decoder. @param v : decoded buffer. Shall NOT be modified or freed as it points directly to internal storage. Scope is the same as the associated message. @param n : decoded buffer size. @return 0 in case of success, negative errno value in case of error.