pub unsafe extern "C" fn nanocbor_encoded_len(
enc: *mut nanocbor_encoder_t,
) -> size_t
Expand description
@brief Retrieve the encoded length of the CBOR structure
This function doesn’t take the length of the buffer supplied to @ref nanocbor_encoder_init into account, it only returns the number of bytes the current CBOR structure would take up.
@param[in] enc Encoder context
@return Length of the encoded structure