pub unsafe extern "C" fn nanocbor_get_simple(
cvalue: *mut nanocbor_value_t,
value: *mut u8,
) -> c_int
Expand description
@brief Retrieve a simple value as integer from the stream
This function returns the simple value as uint8_t value and skips decoding the meaning of the values. For example, a CBOR true is returned as value 21.
@param[in] cvalue CBOR value to decode from @param[out] value Simple value retrieved from the stream
@return NANOCBOR_OK on success @return negative on error