wavelength 1.0.0
Loading...
Searching...
No Matches
Pool Class Reference

A free list of fixed-size elements in one block. More...

#include <Pool.h>

Public Member Functions

 Pool ()
void * Alloc ()
 Take an element.
void Free (void *elem)
 Return an element, which must lie in the pool's block.

Detailed Description

A free list of fixed-size elements in one block.

The object is 0x10 bytes. The member names follow the assertion text of the source. Which of the two counts is the element size and which the element count is not settled by the control, which never sets up a pool.

Constructor & Destructor Documentation

◆ Pool()

Pool::Pool ( )
inline

Member Function Documentation

◆ Alloc()

void * Pool::Alloc ( )

Take an element.

Returns
The element, or null when none is free.
Ghidra address:
0x1001bad0

◆ Free()

void Pool::Free ( void * elem)

Return an element, which must lie in the pool's block.

Parameters
elemThe element.
Ghidra address:
0x1001baf0

The documentation for this class was generated from the following file:
  • tools/synthedit/utl/common/Pool.h