riot_sys

Function nanocbor_fmt_float

Source
pub unsafe extern "C" fn nanocbor_fmt_float(
    enc: *mut nanocbor_encoder_t,
    num: f32,
) -> c_int
Expand description

@brief Write a float value into the encoder buffer

@param[in] enc Encoder context @param[in] num Floating point to encode

@return Number of bytes written @return Negative on error