pub unsafe extern "C" fn nanocbor_encoder_init(
    enc: *mut nanocbor_encoder_t,
    buf: *mut u8,
    len: size_t
)
Expand description

@brief Initializes an encoder context with a memory buffer.

It is safe to pass NULL to @p buf with @p len is 0 to determine the size of a CBOR structure.

@param[in] enc Encoder context @param[in] buf Buffer to write into @param[in] len length of the buffer