openharmony 鸿蒙 capi-hidebug-hidebug-mallocdispatch

2026-08-25 浏览 (1)

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

NameDescription
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.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-hiviewdfx-FaultLogExtensionAbility

openharmony 鸿蒙 capi-log-h

openharmony 鸿蒙 errorcode-hisysevent-sys

openharmony 鸿蒙 capi-hitrace-hitraceid

openharmony 鸿蒙 capi-hidebug-hidebug-threadcpuusage

openharmony 鸿蒙 js-apis-loglibrary-sys

openharmony 鸿蒙 capi-hiappevent-h

openharmony 鸿蒙 capi-hidebug-hidebug-jsstackframe

openharmony 鸿蒙 capi-hitrace

openharmony 鸿蒙 capi-hiappevent-param-h

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/bcfzzWHJ