![]() |
| Home |
|
|
Function RTKFreeBufferFunction RTKFreeBuffer passes a buffer to a Memory Pool: void RTKFreeBuffer(RTKMemPool * Pool, void * Buffer); ParametersPoolPointer to the pool handle of the pool to which to pass the buffer. BufferPointer to the buffer to pass. In general, the buffer will have been retrieved previously from the pool; however, it can also have been allocated by a different method (e.g., malloc, RTKAlloc, or allocated as a static variable). It must be ensured that the same buffer is not passed to a pool twice by RTKFreeBuffer, because this would destroy the Memory Pool. This condition is not recognized by RTKFreeBuffer and the program will crash in most cases.
|