multiversx_sc_wasm_adapter/
wasm_alloc.rs

1
2
3
4
5
6
7
8
9
10
11
12
mod fail_allocator;
mod leaking_allocator;
mod memory_grow;
mod static_allocator;

pub use fail_allocator::FailAllocator;
pub use leaking_allocator::LeakingAllocator;
pub use static_allocator::{StaticAllocator, StaticAllocator64K};

fn mem_alloc_error() -> ! {
    crate::error_hook::signal_error(multiversx_sc::err_msg::MEM_ALLOC_ERROR.as_bytes())
}