riot_sys

Function nanocbor_fmt_array

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

@brief Write an array indicator with @p len items

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

@param[in] enc Encoder context @param[in] len Number of items in the array

@return Number of bytes written @return Negative on error