![]() |
Public API Reference |
Classes | |
| class | AllocatorAlign |
| This class implements an allocator policy which aligns the first element on given byte boundary. More... | |
| class | AllocatorHeap |
| A memory allocator that allocates from a heap. More... | |
| class | AllocatorHeapBase |
| A memory allocator that allocates from a heap. More... | |
| class | AllocatorImplementation |
| iAllocator implementation, wrapping arbitrary allocator. More... | |
| class | AllocatorInterface |
| Memory allocator forwarding to an iAllocator implementation. More... | |
| class | AllocatorMalloc |
| A default memory allocator that allocates with cs_malloc(). More... | |
| class | AllocatorMallocPlatform |
| Memory allocator using the platform's default allocation functions (malloc, free etc.) More... | |
| class | AllocatorNew |
| A default memory allocator that allocates using new T[]. More... | |
| class | AllocatorNewChar |
| A default memory allocator that allocates using new char[]. More... | |
| struct | AllocatorPointerWrapper |
| Class to store a pointer that is allocated from Allocator, to eliminate overhead from a possibly empty Allocator. More... | |
| class | AllocatorRef |
| Memory allocator forwarding to another allocator. More... | |
| class | AllocatorSafe |
| Threadsafe allocator wrapper. More... | |
| class | BlockAllocatorSafe |
| Thread-safe allocator for objects of a class. More... | |
| class | CustomAllocated |
| Class that overrides operator new/operator delete/etc. More... | |
| class | CustomAllocatedDerived |
| Class that overrides operator new/operator delete/etc. More... | |
| class | FixedSizeAllocatorSafe |
| Thread-safe allocator for blocks of the same size. More... | |
| class | Heap |
| A separate heap from which memory can be allocated. More... | |
| struct | HeapAccessPointer |
| Heap accessor for AllocatorHeapBase. More... | |
| struct | iAllocator |
| Allocator interface. More... | |
| class | LocalBufferAllocator |
| An allocator with a small local buffer. More... | |
| class | LocalBufferAllocatorUnchecked |
| LocalBufferAllocator without safety checks, but suitable for use across modules. More... | |
Functions | |
| void | AlignedFree (void *ptr) |
| Free a block of memory allocated with AlignedMalloc. | |
| void * | AlignedMalloc (size_t size, size_t align) |
Allocate a block of memory, with the start address being aligned to a multiple of align bytes. | |
| void * | AlignedRealloc (void *ptr, size_t size, size_t align) |
Reallocate a block of memory with a new size, with the start address being aligned to a multiple of align bytes. | |
Memory allocation.
| void CS::Memory::AlignedFree | ( | void * | ptr | ) |
Free a block of memory allocated with AlignedMalloc.
| void* CS::Memory::AlignedMalloc | ( | size_t | size, |
| size_t | align | ||
| ) |
Allocate a block of memory, with the start address being aligned to a multiple of align bytes.
| void* CS::Memory::AlignedRealloc | ( | void * | ptr, |
| size_t | size, | ||
| size_t | align | ||
| ) |
Reallocate a block of memory with a new size, with the start address being aligned to a multiple of align bytes.