[][src]Function libcoap_sys::coap_pdu_parse_size

pub unsafe extern "C" fn coap_pdu_parse_size(
    proto: coap_proto_t,
    data: *const u8,
    length: usize
) -> usize

Parses @p data to extract the message size. @p length must be at least coap_pdu_parse_header_size(proto, data). This function returns @c 0 on error or a number greater than zero on success.

@param proto Session's protocol @param data The raw data to parse as CoAP PDU. @param length The actual size of @p data.

@return A value greater than zero on success or @c 0 on error.