HiDebug_MallocDispatch
typedef struct HiDebug_MallocDispatch {...} HiDebug_MallocDispatch
Overview
Defines the struct types of the replaceable/restorable HiDebug_MallocDispatch table of the application process.
Since: 20
Related module: HiDebug
Header file: hidebug_type.h
Summary
Member Function
| Name | Description |
|---|---|
| void* (*malloc)(size_t) | Pointer to the custom malloc function. |
| void* (*calloc)(size_t, size_t) | Pointer to the custom calloc function. |
| void* (*realloc)(void*, size_t) | Pointer to the custom realloc function. |
| void (*free)(void*) | Pointer to the custom free function. |
| void* (*mmap)(void*, size_t, int, int, int, off_t) | Pointer to the custom mmap function. |
| int (*munmap)(void*, size_t) | Pointer to the custom munmap function. |
Member Function Description
malloc()
void* (*malloc)(size_t)
Description
Pointer to the custom malloc function.
calloc()
void* (*calloc)(size_t, size_t)
Description
Pointer to the custom calloc function.
realloc()
void* (*realloc)(void*, size_t)
Description
Pointer to the custom realloc function.
free()
void (*free)(void*)
Description
Pointer to the custom free function.
mmap()
void* (*mmap)(void*, size_t, int, int, int, off_t)
Description
Pointer to the custom mmap function.
munmap()
int (*munmap)(void*, size_t)
Description
Pointer to the custom munmap function.