Type Alias riot_sys::nanocbor_encoder_t

source ·
pub type nanocbor_encoder_t = nanocbor_encoder;
Expand description

@brief encoder context

Aliased Type§

struct nanocbor_encoder_t {
    pub len: u32,
    pub append: Option<unsafe extern "C" fn(_: *mut nanocbor_encoder, _: *mut c_void, _: *const u8, _: u32)>,
    pub fits: Option<unsafe extern "C" fn(_: *mut nanocbor_encoder, _: *mut c_void, _: u32) -> bool>,
    pub __bindgen_anon_1: nanocbor_encoder__bindgen_ty_1,
    pub end: *mut u8,
}

Fields§

§len: u32

< Length in bytes of supplied cbor data. Incremented separate from the buffer check

§append: Option<unsafe extern "C" fn(_: *mut nanocbor_encoder, _: *mut c_void, _: *const u8, _: u32)>

< Function used to append encoded data

§fits: Option<unsafe extern "C" fn(_: *mut nanocbor_encoder, _: *mut c_void, _: u32) -> bool>§__bindgen_anon_1: nanocbor_encoder__bindgen_ty_1§end: *mut u8

< end of the buffer