#include <si_sys/blkalloc.h>
Public Attributes | |
s_int32 | nblocks |
s_int32 | maxCapacity |
s_int32 | blockSize |
sc_blockDesc * | blocks |
sc_bufferDesc * | buffers |
An object that can allocate and deallocate fixed sized blocks in constant time. The storage (in blocks) can be fixed or growable at the caller's option.
sc_blockDesc* sc_blockAllocator::blocks |
Free block list.
s_int32 sc_blockAllocator::blockSize |
Size of blocks in bytes.
sc_bufferDesc* sc_blockAllocator::buffers |
List of buffers to free on destruction.
s_int32 sc_blockAllocator::maxCapacity |
Max number of blocks to allocate.
s_int32 sc_blockAllocator::nblocks |
Number of blocks currently allocated.