riot_sys::bindgen

Function nanocbor_get_tstr

Source
pub unsafe extern "C" fn nanocbor_get_tstr(
    cvalue: *mut nanocbor_value_t,
    buf: *mut *const u8,
    len: *mut size_t,
) -> c_int
Expand description

@brief Retrieve a text string from the stream

The resulting @p buf and @p len are undefined if the result is an error condition

@param[in] cvalue CBOR value to decode from @param[out] buf pointer to the text string @param[out] len length of the text string

@return NANOCBOR_OK on success @return negative on error