// Low-level functions exposed by the WASM host.
//
// They are intentionally kept private to the crate. `src/lib.rs` provides the
// safe wrappers used by contract authors.
//
// # Safety
//
// All functions below cross the WASM boundary and work with raw pointers.
unsafe extern "C"