riot_sys

Function nanocbor_fmt_bstr

Source
pub unsafe extern "C" fn nanocbor_fmt_bstr(
    enc: *mut nanocbor_encoder_t,
    len: size_t,
) -> c_int
Expand description

@brief Write a byte string indicator for a byte string with specific length into the encoder buffer

This doesn’t write any byte string into the encoder buffer, only the type and length indicator for the byte string

@param[in] enc Encoder context @param[in] len Length of the byte string

@return number of bytes written @return Negative on error