Memory manager
[UCS-2 Character/String API]
Memory manager provides functions to allocate/expand/free memory blocks.
More...Functions | |
UCS2API void * | ucs2malloc (size_t size) |
Allocate a memory block. | |
UCS2API void * | ucs2calloc (size_t size) |
Allocate a memory block with values initialized as zero. | |
UCS2API void * | ucs2realloc (void *ptr, size_t size) |
Resize a memory block. | |
UCS2API void | ucs2free (void *ptr) |
Free a memory block. |
Detailed Description
Memory manager provides functions to allocate/expand/free memory blocks.Use these functions to manage memory blocks allocated by the PMPlib API.
Function Documentation
UCS2API void* ucs2calloc | ( | size_t | size | ) |
Allocate a memory block with values initialized as zero.
- Parameters:
-
size The size, in bytes, of the memory block.
- Return values:
-
void* The pointer to the allocated memory block.
UCS2API void ucs2free | ( | void * | ptr | ) |
Free a memory block.
- Parameters:
-
ptr The pointer to the memory block to be free.
UCS2API void* ucs2malloc | ( | size_t | size | ) |
Allocate a memory block.
- Parameters:
-
size The size, in bytes, of the memory block.
- Return values:
-
void* The pointer to the allocated memory block.
UCS2API void* ucs2realloc | ( | void * | ptr, | |
size_t | size | |||
) |
Resize a memory block.
- Parameters:
-
ptr The pointer to the memory block to be resized. size The size, in bytes, of the new memory block.
- Return values:
-
void* The pointer to the new memory block.