class KZoneAllocator
|
Memory allocator for large groups of small objects. More... |
|
|
Public Methods
Protected Members
Detailed Description
Memory allocator for large groups of small objects.
This should be used for large groups of objects that are created and
destroyed together. When used carefully for this purpose it is faster
and more memory efficient than malloc.
KZoneAllocator (long _blockSize = 128*1024)
|
Create a ZoneAllocator
Parameters:
| |
Destruct the ZoneAllocator and free all memory allocated by it.
void* allocate (size_t _size)
|
Allocate a memory block.
Parameters:
| |
[protected]
[protected]
[protected]
[protected]
- Version: $Id: kallocator.h,v 1.3 2000/03/06 18:10:42 granroth Exp $
- Author: Waldo Bastian <bastian@kde.org>
- Generated: prospector@porky.devel.redhat.com on Fri Nov 3 09:58:39 2000, using kdoc 2.0a42.