Global Functions in Global Namespace C++
in Sourcefile alloc.h
- rtl_allocateMemory
- extern "C"
void * rtl_allocateMemory(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Allocate memory.
- Description
- A call to this function will return NULL upon the requested
memory size being either zero or larger than currently allocatable.
- Parameters
-
- Return
- pointer to allocated memory.
- rtl_allocateZeroMemory
- extern "C"
void * rtl_allocateZeroMemory(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Allocate and zero memory.
- Description
- A call to this function will return NULL upon the requested
memory size being either zero or larger than currently allocatable.
- Parameters
-
- Return
- pointer to allocated and zero'ed memory.
- rtl_arena_alloc
- extern "C"
void * rtl_arena_alloc(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- rtl_arena_alloc()
*
*
- Parameters
pArena |
arena from which resource is allocated.
* |
pBytes |
size of resource to allocate.
*
* |
- Return
- allocated resource, or NULL upon failure.
*
*
- See Also
- rtl_arena_free()
- rtl_arena_destroy
- extern "C"
void rtl_arena_destroy(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- rtl_arena_destroy()
*
*
- Parameters
pArena |
the arena to destroy.
* |
- Return
- None
*
*
- See Also
- rtl_arena_create()
- rtl_arena_free
- extern "C"
void rtl_arena_free(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- rtl_arena_free()
*
*
- Parameters
pArena |
arena from which resource was allocated.
* |
pAddr |
resource to free.
* |
nBytes |
size of resource.
*
* |
- Return
- None.
*
*
- See Also
- rtl_arena_alloc()
- rtl_cache_alloc
- extern "C"
void * rtl_cache_alloc(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- rtl_cache_alloc()
*
*
- Parameters
pCache |
cache from which object is allocated.
*
* |
- Return
- pointer to allocated object, or NULL upon failure.
- rtl_cache_destroy
- extern "C"
void rtl_cache_destroy(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- rtl_cache_destroy()
*
*
- Parameters
pCache |
the cache to destroy.
*
* |
- Return
- None.
*
*
- See Also
- rtl_cache_create()
- rtl_cache_free
- extern "C"
void rtl_cache_free(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- rtl_cache_free()
*
*
- Parameters
pCache |
cache from which object was allocated.
* |
pObj |
object to free.
*
* |
- Return
- None.
*
*
- See Also
- rtl_cache_alloc()
- rtl_freeMemory
- extern "C"
void rtl_freeMemory(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Free memory.
- Parameters
Ptr |
pointer to previously allocated memory.
|
- Return
- none. Memory is released. Ptr is invalid.
- rtl_freeZeroMemory
- extern "C"
void rtl_freeZeroMemory(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Zero and free memory.
- Parameters
Ptr |
pointer to previously allocated memory.
|
Bytes |
memory size.
|
- Return
- none. Memory is zero'ed and released. Ptr is invalid.
- rtl_reallocateMemory
- extern "C"
void * rtl_reallocateMemory(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Reallocate memory.
- Description
- A call to this function with parameter 'Ptr' being NULL
is equivalent to a rtl_allocateMemory() call.
A call to this function with parameter 'Bytes' being 0
is equivalent to a rtl_freeMemory() call.
- See Also
- rtl_allocateMemory()
rtl_freeMemory()
- Parameters
Ptr |
pointer to previously allocated memory.
|
Bytes |
new memory size.
|
- Return
- pointer to reallocated memory. May differ from Ptr.
Top of Page
Copyright © 2000, 2016 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.