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
#include "kdemacros.h"
00030
00031
class KVMAllocatorPrivate;
00032
00040 class KVMAllocator
00041 {
00042
public:
00043
struct Block;
00044
00048
KVMAllocator();
00049
00053
~KVMAllocator();
00054
00060 Block *
allocate(size_t _size);
00061
00066
void free(Block *block);
00067
00078
bool copyBlock(
void *dest, Block *src,
int _offset = 0, size_t length = 0);
00079
00084
void copy(
void *dest, Block *src,
int _offset = 0, size_t length = 0) KDE_DEPRECATED;
00085
00096
bool copyBlock(Block *dest,
void *src,
int _offset = 0, size_t length = 0);
00097
00102
void copy(Block *dest,
void *src,
int _offset = 0, size_t length = 0) KDE_DEPRECATED;
00103
00108
void *
map(Block *block);
00109
00114
void unmap(Block *block);
00115
00116
private:
00117 KVMAllocatorPrivate *d;
00118 };
00119
00120
#endif
This file is part of the documentation for kdecore Library Version 3.3.1.