Open Lighting Architecture: ola::io::MemoryBlockPool Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
ola::io::MemoryBlockPool Class Reference

## Detailed Description

MemoryBlockPool. This class is not thread safe.

Parameters

  block_size | the size of blocks to use.

## Public Member Functions
| MemoryBlockPool (unsigned int block_size=DEFAULT_BLOCK_SIZE)
MemoryBlock * | Allocate ()
void | Release (MemoryBlock *block)
unsigned int | FreeBlocks () const
void | Purge ()
void | Purge (unsigned int remaining)
unsigned int | BlocksAllocated () const

## Static Public Attributes
static const unsigned int | DEFAULT_BLOCK_SIZE = 1024

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

- include/ola/io/MemoryBlockPool.h