kvmallocator.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KVMALLOCATOR_H
00026 #define KVMALLOCATOR_H
00027
00028 #include <sys/types.h>
00029
00030 class KVMAllocatorPrivate;
00031
00039 class KVMAllocator
00040 {
00041 public:
00042 struct Block;
00043
00047 KVMAllocator();
00048
00052 ~KVMAllocator();
00053
00059 Block *allocate(size_t _size);
00060
00065 void free(Block *block);
00066
00075 void copy(void *dest, Block *src, int _offset = 0, size_t length = 0);
00076
00085 void copy(Block *dest, void *src, int _offset = 0, size_t length = 0);
00086
00091 void *map(Block *block);
00092
00097 void unmap(Block *block);
00098
00099 private:
00100 KVMAllocatorPrivate *d;
00101 };
00102
00103 #endif
This file is part of the documentation for kdelibs Version 3.1.5.