Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
FixedSizeAllocator.h File Reference
#include <BaServerLib.h>
#include <SingleList.h>
Include dependency graph for FixedSizeAllocator.h:

Go to the source code of this file.

Classes

struct  FixedSizeAllocator
 This is a fixed size allocator implementation for the abstract interface class AllocatorIntf. More...
 

Typedefs

typedef FixedSizeAllocator FixedSizeAllocator
 This is a fixed size allocator implementation for the abstract interface class AllocatorIntf. More...
 

Functions

BA_API void FixedSizeAllocator_constructor (FixedSizeAllocator *o, void *buffer, size_t bufSize, size_t blockSize)
 Initialize a fixed-size allocator in caller-provided storage. More...
 

Function Documentation

◆ 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]oAllocator object to initialize.
[in,out]bufferWritable, suitably aligned backing buffer retained by o.
[in]bufSizeByte size of buffer; incomplete trailing blocks are unused.
[in]blockSizePositive block size. See FixedSizeAllocator::FixedSizeAllocator(void*,size_t,size_t) for alignment, minimum-size and lifetime requirements.