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

@brief Retrieve a signed integer as int16_t from the stream

If the value at cvalue is greater than 16 bit (< -32768 or > 32767), 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 signed integer

@return number of bytes read @return negative on error