//! Low-level unsafe bindings for wolfSSL wolfCOSE.
//!
//! Most items in this crate are generated from `wolfcose/wolfcose.h`.
//! Callers are responsible for respecting the C API's pointer, lifetime, and
//! feature-gate requirements.
include!;
/// Return the CBOR major type at the decoder cursor without advancing it.
///
/// This mirrors the C inline `wc_CBOR_PeekType`, which bindgen cannot expose
/// portably as an extern function.
///
/// # Safety
///
/// `ctx` must be a valid pointer to a `WOLFCOSE_CBOR_CTX`, `ctx.cbuf` must be
/// valid for `ctx.bufSz` bytes, and `ctx.idx` must be less than `ctx.bufSz`.
pub unsafe