#include <BaServerLib.h>
#include <SingleList.h>
Go to the source code of this file.
◆ FixedSizeAllocator_constructor()
| BA_API void FixedSizeAllocator_constructor |
( |
FixedSizeAllocator * |
o, |
|
|
void * |
buffer, |
|
|
size_t |
bufSize, |
|
|
size_t |
blockSize |
|
) |
| |
Initialize a fixed-size allocator in caller-provided storage.
- Parameters
-
| [out] | o | Allocator object to initialize. |
| [in,out] | buffer | Writable, suitably aligned backing buffer retained by o. |
| [in] | bufSize | Byte size of buffer; incomplete trailing blocks are unused. |
| [in] | blockSize | Positive block size. See FixedSizeAllocator::FixedSizeAllocator(void*,size_t,size_t) for alignment, minimum-size and lifetime requirements. |