pub unsafe extern "C" fn nanocbor_get_uint8(
    cvalue: *mut nanocbor_value_t,
    value: *mut u8
) -> c_int
Expand description

@brief Retrieve a positive integer as uint8_t from the stream

If the value at cvalue is greater than 8 bit (> 255), error is returned.

The resulting @p value is undefined if the result is an error condition

@param[in] cvalue CBOR value to decode from @param[out] value returned positive integer

@return number of bytes read @return negative on error