riot_sys::bindgen

Function nanocbor_get_subcbor

Source
pub unsafe extern "C" fn nanocbor_get_subcbor(
    it: *mut nanocbor_value_t,
    start: *mut *const u8,
    len: *mut size_t,
) -> c_int
Expand description

@brief Retrieve part of the CBOR stream for separate parsing

This function retrieves the pointer and length of a single CBOR item. This item can be stored for later processing.

@param[in] it CBOR value to retrieve @param[out] start start of the CBOR item @param[out] len length of the CBOR item

@return NANOCBOR_OK on success @return negative on error