KVMAllocator Class Reference
KVMAllocator is a virtual memory allocator. More...
#include <kvmallocator.h>
Public Member Functions | |
KVMAllocator () | |
Create a KVMAllocator. | |
~KVMAllocator () | |
Destruct the KVMAllocator and release all memory. | |
Block * | allocate (size_t _size) |
Allocate a virtual memory block. | |
void | free (Block *block) |
Free a virtual memory block. | |
void | copy (void *dest, Block *src, int _offset=0, size_t length=0) |
Copy length bytes from _offset in the virtual memory block src to normal memory at address *dest. | |
void | copy (Block *dest, void *src, int _offset=0, size_t length=0) |
Copy length bytes from normal memory at address src to _offset in the virtual memory block dest . | |
void * | map (Block *block) |
Map a virtual memory block in memory. | |
void | unmap (Block *block) |
Unmap a virtual memory block. |
Detailed Description
KVMAllocator is a virtual memory allocator.Memory is allocated block-wise in a tmp file.
- Author:
- Waldo Bastian <bastian@kde.org>
- Version:
- Id
- kvmallocator.h,v 1.5 2002/09/14 17:15:10 tjansen Exp
Definition at line 39 of file kvmallocator.h.
Constructor & Destructor Documentation
|
Create a KVMAllocator.
Definition at line 63 of file kvmallocator.cpp. |
|
Destruct the KVMAllocator and release all memory.
Definition at line 73 of file kvmallocator.cpp. |
Member Function Documentation
|
Allocate a virtual memory block.
Definition at line 84 of file kvmallocator.cpp. References QMap::size(). |
|
Free a virtual memory block.
Definition at line 132 of file kvmallocator.cpp. |
|
Copy
Definition at line 187 of file kvmallocator.cpp. |
|
Copy
Definition at line 210 of file kvmallocator.cpp. |
|
Map a virtual memory block in memory.
Definition at line 233 of file kvmallocator.cpp. |
|
Unmap a virtual memory block.
Definition at line 248 of file kvmallocator.cpp. |
The documentation for this class was generated from the following files: