[][src]Function libcoap_sys::coap_pdu_clear

pub unsafe extern "C" fn coap_pdu_clear(pdu: *mut coap_pdu_t, size: usize)

Clears any contents from @p pdu and resets @c used_size, and @c data pointers. @c max_size is set to @p size, any other field is set to @c 0. Note that @p pdu must be a valid pointer to a coap_pdu_t object created e.g. by coap_pdu_init().