std1.0.0-beta-7 SafeC docs

std :: alloc::allocator

Trait std::Allocate

#include <std/alloc/allocator.h> source

trait Allocate {
    ?&heap unsigned char alloc(unsigned long size, unsigned long align);
}

Required methods

ยง?&heap unsigned char alloc(unsigned long size, unsigned long align)source

'size' bytes aligned to 'align' (a power of two), uninitialised; null when the allocator can't (out of space, or an alignment or size it doesn't provide).