pub unsafe extern "C" fn nanocbor_encoder_stream_init(
enc: *mut nanocbor_encoder_t,
ctx: *mut c_void,
append_func: nanocbor_encoder_append,
fits_func: nanocbor_encoder_fits,
)
Expand description
@brief Initializes an encoder context with custom append and fits functions.
@param[in] enc Encoder context @param[in] ctx Context pointer @param[in] append_func Called to append emitted encoder data @param[in] fits_func Called to check if data can be consumed