Expand description
ABI Safe Interface for allocation. Also provides allocator functions that can be used accross modules (on windows, the system allocator cannot be safely used to do so)
Structs
VTable
for the Allocator
traitAn abi safe version of the
std::alloc::Layout
typeError returned when an invalid Layout is produced
An Allocator which allocates memory using
xlang_allocate
and/or xlang_allocate_array
Traits
The Allocator trait provides an interface for collections and smart pointers to obtain memory
A memory allocator that can be registered as the standard library’s default
through the
#[global_allocator]
attribute.Functions
Called when allocation returns an unhandled error
Function that allocates memory suitable for storing an object of size
size
, with at least the maximum fundamental alignment for that size.Function that allocates memory suitable for storing an object of size
size
, with at least the alignment given by align
.Deallocates memory allocated using
xlang_allocate
Deallocates memory allocated using
xlang_allocate
Function to call when allocation fails.