| 
		| class KVMAllocator | KVMAllocator is a virtual memory allocator. More... |  
 |  | 
Public Methods
-  KVMAllocator () 
-  ~KVMAllocator () 
- Block * allocate (size_t _size) 
- void  free (Block *block) 
- void  copy (void *dest, Block *src, int _offset = 0, size_t length = 0) 
- void  copy (Block *dest, void *src, int _offset = 0, size_t length = 0) 
- void * map (Block *block) 
- void  unmap (Block *block) 
Public Members
 KVMAllocator is a virtual memory allocator.
 Memory is allocated block-wise in a tmp file.
| KVMAllocator () 
 | KVMAllocator | 
 Create a KVMAllocator 
     
| ~KVMAllocator () 
 | ~KVMAllocator | 
 Destruct the KVMAllocator and release all memory.
     
| Block * allocate (size_t _size) 
 | allocate | 
 Allocate a virtual memory block.
Parameters:
| _size | Size in bytes of the memory block. | 
Returns: the allocated memory block
     
| void  free (Block *block) 
 | free | 
 Free a virtual memory block.
Parameters:
| void  copy (void *dest, Block *src, int _offset = 0, size_t length = 0) 
 | copy | 
 Copy length bytes from _offset in the virtual memory block 
 src to normal memory at address *dest.
Parameters:
| dest | the destination of the data | 
| src | the source block | 
| _offset | the offset in the source block | 
| length | the length of the data to copy | 
| void  copy (Block *dest, void *src, int _offset = 0, size_t length = 0) 
 | copy | 
 Copy length bytes from normal memory at address src to 
 _offset in the virtual memory block dest.
Parameters:
| dest | the block to copy the data to | 
| src | the source location of the data | 
| _offset | the offset in the destination block | 
| length | the length of the data to copy | 
| void * map (Block *block) 
 | map | 
 Map a virtual memory block in memory
Parameters:
| void  unmap (Block *block) 
 | unmap | 
 Unmap a virtual memory block
Parameters:
- Version: $Id: KVMAllocator.html 203394 2003-01-28 18:16:22Z ctennis $
 
- Author: Waldo Bastian 
- Generated: caleb on tcdevel on Tue Jan 28 12:54:04 2003, using kdoc $.