[−][src]Function libcoap_sys::coap_get_data
pub unsafe extern "C" fn coap_get_data(
pdu: *const coap_pdu_t,
len: *mut usize,
data: *mut *mut u8
) -> c_int
Retrieves the length and data pointer of specified PDU. Returns 0 on error or 1 if *len and *data have correct values. Note that these values are destroyed with the pdu.