Function riot_sys::nanocbor_fmt_map

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

@brief Write a map indicator with @p len pairs

It is assumed that the calling code will encode @p len item pairs after calling this function. The array automatically terminates after @p len item pairs are added, no function to close the container is necessary.

@param[in] enc Encoder context @param[in] len Number of pairs in the map

@return Number of bytes written @return Negative on error