class
MemoryAllocator
Memory allocator providing a generic implementation.
Specialize for specific categories as needed.
Public
Methods
staticAllocate
Allocates bytes.
staticAllocateAligned
Allocates and aligns them to the specified boundary (in bytes).
If the aligment is less or equal to 16 it is more efficient to use the allocateAligned16() alternative of this method. Alignment must be power of two.
staticAllocateAligned16
Allocates and aligns them to a 16 byte boundary.
staticFree
Frees the memory at the specified location.
staticFreeAligned
Frees memory allocated with allocateAligned()
staticFreeAligned16
Frees memory allocated with allocateAligned16()
staticAllocate
staticFree
staticAllocate
Allocates bytes.
staticAllocateAligned
Allocates and aligns them to the specified boundary (in bytes).
If the aligment is less or equal to 16 it is more efficient to use the allocateAligned16() alternative of this method. Alignment must be power of two.
staticAllocateAligned16
Allocates and aligns them to a 16 byte boundary.
staticFree
Frees the memory at the specified location.
staticFreeAligned
Frees memory allocated with allocateAligned()
staticFreeAligned16
Frees memory allocated with allocateAligned16()
staticAllocate
Allocates the given number of bytes.
staticFree
Frees memory previously allocated with allocate().