[][src]Function libcoap_sys::coap_pdu_parse_header_size

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

Interprets @p data to determine the number of bytes in the header. This function returns @c 0 on error or a number greater than zero on success.

@param proto Session's protocol @param data The first byte of raw data to parse as CoAP PDU.

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