Overview | Namespace | Class | Index | Help |
Global Functions in Global Namespace C++
in Sourcefile alloc.h
- rtl_allocateMemory
- extern "C"
void * rtl_allocateMemory( sal_uInt32 Bytes );
- extern "C"
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
Bytes memory size.
- Return
- pointer to allocated memory.
- rtl_allocateZeroMemory
- extern "C"
void * rtl_allocateZeroMemory( sal_uInt32 Bytes );
- extern "C"
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
Bytes memory size.
- Return
- pointer to allocated and zero'ed memory.
- rtl_freeMemory
- extern "C"
void rtl_freeMemory( void * Ptr );
- extern "C"
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( void * Ptr, sal_uInt32 Bytes );
- extern "C"
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( void * Ptr, sal_uInt32 Bytes );
- extern "C"
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 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.