sc_blockAllocator Struct Reference

A fixed size block allocator object. More...

#include <si_sys/blkalloc.h>

List of all members.

Public Attributes

s_int32 nblocks
s_int32 maxCapacity
s_int32 blockSize
sc_blockDesc * blocks
sc_bufferDesc * buffers


Detailed Description

A fixed size block allocator object.

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.


Member Data Documentation

Free block list.

Size of blocks in bytes.

List of buffers to free on destruction.

Max number of blocks to allocate.

Number of blocks currently allocated.


The documentation for this struct was generated from the following file:

doxygen