Function bp7::ffi::bundle_from_cbor

source ·
#[no_mangle]
pub unsafe extern "C" fn bundle_from_cbor(
    ptr: *mut Buffer
) -> *mut Bundle
Expand description

Try to decode a bundle from a given buffer.

In case of failure, a null pointer is returned instead of a bundle.

Safety

Should only be called from FFI interface. This function can lead to UB as pointer cannot be validated!