[][src]Macro ckb_std::default_alloc

macro_rules! default_alloc {
    () => { ... };
    ($heap_size:expr, $min_block_size:expr) => { ... };
}

Usage

// define global allocator with defaut pure rust allocator
default_alloc!()
// indicate the heap size(default heap size is 64KB, with 16Bytes min allocated memory)
default_alloc!(64 * 1024, 16)