Module maskerad_memory_allocators::utils [] [src]

Structs

TypeDescription

A Structure holding the function pointer to the drop implementation, the size and the alignment of a given type T.

Functions

bitpack_type_description_ptr

Encode whether the object (described by a TypeDescription) has been initialized in the StackAllocator in the low bit of the TypeDescription pointer.

get_type_description

Returns a constant raw pointer to a TypeDescription structure, from a given T.

round_up

Returns an index to an aligned memory location, given a starting memory location index and an alignment.

un_bitpack_type_description_ptr

Decode the given memory location, extracting: