My Project
UDK 3.2.7 C/C++ API Reference
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rtl
alloc.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
20
#ifndef _RTL_ALLOC_H_
21
#define _RTL_ALLOC_H_
22
23
#include "
sal/config.h
"
24
25
#include "
sal/saldllapi.h
"
26
#include "
sal/types.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
40
SAL_DLLPUBLIC
void
* SAL_CALL
rtl_allocateMemory
(
41
sal_Size Bytes
42
)
SAL_THROW_EXTERN_C
();
43
44
59
SAL_DLLPUBLIC
void
* SAL_CALL
rtl_reallocateMemory
(
60
void
* Ptr,
61
sal_Size Bytes
62
)
SAL_THROW_EXTERN_C
();
63
64
69
SAL_DLLPUBLIC
void
SAL_CALL
rtl_freeMemory
(
70
void
* Ptr
71
)
SAL_THROW_EXTERN_C
();
72
73
81
SAL_DLLPUBLIC
void
* SAL_CALL
rtl_allocateZeroMemory
(
82
sal_Size Bytes
83
)
SAL_THROW_EXTERN_C
();
84
85
91
SAL_DLLPUBLIC
void
SAL_CALL
rtl_freeZeroMemory
(
92
void
* Ptr,
93
sal_Size Bytes
94
)
SAL_THROW_EXTERN_C
();
95
96
99
typedef
struct
rtl_arena_st
rtl_arena_type
;
100
101
#define RTL_ARENA_NAME_LENGTH 31
102
103
118
SAL_DLLPUBLIC
rtl_arena_type
* SAL_CALL
rtl_arena_create
(
119
const
char
* pName,
120
sal_Size quantum,
121
sal_Size quantum_cache_max,
122
rtl_arena_type
* source_arena,
123
void
* (SAL_CALL * source_alloc)(
rtl_arena_type
*, sal_Size *),
124
void
(SAL_CALL * source_free) (
rtl_arena_type
*,
void
*, sal_Size),
125
int
nFlags
126
)
SAL_THROW_EXTERN_C
();
127
128
136
SAL_DLLPUBLIC
void
SAL_CALL
rtl_arena_destroy
(
137
rtl_arena_type
* pArena
138
)
SAL_THROW_EXTERN_C
();
139
140
150
SAL_DLLPUBLIC
void
* SAL_CALL
rtl_arena_alloc
(
151
rtl_arena_type
* pArena,
152
sal_Size * pBytes
153
)
SAL_THROW_EXTERN_C
();
154
155
166
SAL_DLLPUBLIC
void
SAL_CALL
rtl_arena_free
(
167
rtl_arena_type
* pArena,
168
void
* pAddr,
169
sal_Size nBytes
170
)
SAL_THROW_EXTERN_C
();
171
172
175
typedef
struct
rtl_cache_st
rtl_cache_type
;
176
177
#define RTL_CACHE_NAME_LENGTH 31
178
179
#define RTL_CACHE_FLAG_BULKDESTROY 1
180
196
SAL_DLLPUBLIC
rtl_cache_type
* SAL_CALL
rtl_cache_create
(
197
const
char
* pName,
198
sal_Size nObjSize,
199
sal_Size nObjAlign,
200
int
(SAL_CALL * constructor)(
void
* pObj,
void
* pUserArg),
201
void
(SAL_CALL * destructor) (
void
* pObj,
void
* pUserArg),
202
void
(SAL_CALL * reclaim) (
void
* pUserArg),
203
void
* pUserArg,
204
rtl_arena_type
* pSource,
205
int
nFlags
206
)
SAL_THROW_EXTERN_C
();
207
208
217
SAL_DLLPUBLIC
void
SAL_CALL
rtl_cache_destroy
(
218
rtl_cache_type
* pCache
219
)
SAL_THROW_EXTERN_C
();
220
221
228
SAL_DLLPUBLIC
void
* SAL_CALL
rtl_cache_alloc
(
229
rtl_cache_type
* pCache
230
)
SAL_THROW_EXTERN_C
();
231
232
242
SAL_DLLPUBLIC
void
SAL_CALL
rtl_cache_free
(
243
rtl_cache_type
* pCache,
244
void
* pObj
245
)
SAL_THROW_EXTERN_C
();
246
247
248
#ifdef __cplusplus
249
}
250
#endif
251
252
#endif
/*_RTL_ALLOC_H_ */
253
254
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Sat Oct 25 2014 23:06:25 for My Project by
1.8.3