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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 20 bytes