Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdecore
kdecore
kdecore
kvmallocator.h
1
/*
2
This file is part of the KDE libraries
3
4
Copyright (C) 2000 Waldo Bastian (bastian@kde.org)
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public
8
License as published by the Free Software Foundation; either
9
version 2 of the License, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Library General Public License for more details.
15
16
You should have received a copy of the GNU Library General Public License
17
along with this library; see the file COPYING.LIB. If not, write to
18
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
Boston, MA 02110-1301, USA.
20
*/
21
//----------------------------------------------------------------------------
22
//
23
// KDE Virtual Memory Allocator
24
25
#ifndef KVMALLOCATOR_H
26
#define KVMALLOCATOR_H
27
28
#include <sys/types.h>
29
#include "kdelibs_export.h"
30
31
class
KVMAllocatorPrivate;
32
39
class
KDECORE_EXPORT
KVMAllocator
40
{
41
public
:
42
struct
Block;
43
47
KVMAllocator
();
48
52
~
KVMAllocator
();
53
59
Block *allocate(
size_t
_size);
60
65
void
free(Block *block);
66
77
bool
copyBlock(
void
*dest, Block *src,
int
_offset = 0,
size_t
length = 0);
78
83
void
copy(
void
*dest, Block *src,
int
_offset = 0,
size_t
length = 0) KDE_DEPRECATED;
84
95
bool
copyBlock(Block *dest,
void
*src,
int
_offset = 0,
size_t
length = 0);
96
101
void
copy(Block *dest,
void
*src,
int
_offset = 0,
size_t
length = 0) KDE_DEPRECATED;
102
107
void
*map(Block *block);
108
113
void
unmap(Block *block);
114
115
private
:
116
KVMAllocatorPrivate *d;
117
};
118
119
#endif
kdecore
Skip menu "kdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kdecore
Skip menu "kdecore"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver