[][src]Function libcoap_sys::coap_pdu_resize

pub unsafe extern "C" fn coap_pdu_resize(
    pdu: *mut coap_pdu_t,
    new_size: usize
) -> c_int

Dynamically grows the size of @p pdu to @p new_size. The new size must not exceed the PDU's configure maximum size. On success, this function returns 1, otherwise 0.

@param pdu The PDU to resize. @param new_size The new size in bytes. @return 1 if the operation succeeded, 0 otherwise.