当前位置:网站首页>Gbase 8s UDR memory management_ 03_ mi_ realloc
Gbase 8s UDR memory management_ 03_ mi_ realloc
2022-07-25 19:29:00 【Eight delicacies tofu】
function mi_realloc The role of is : Reallocate the user memory block to the specified size , And return a pointer to the block .
grammar
void *mi_realloc(void *ptr, mi_integer size)
mi_integer size;
ptr Pointer to memory block .
size Number of bytes to reallocate .
On the client side LIBMI Valid in application ? | Valid in user-defined routines ? |
yes | yes |
usage
mi_realloc() Function to change the size of user memory to the specified size , And use the current default memory duration . If ptr Parameter is NULL, that mi_realloc() Is a constructor of user memory , Its behavior is related to mi_alloc() identical .
The delta function is going to be : Returns a pointer to the reallocated user memory . Convert this pointer to match the structure of the user-defined buffer or structure you allocated . When there is no need for mi_realloc() When allocating memory ,DataBlade API Modules can be used mi_free() To free the memory .
Return value
A null pointer
Pointer to reallocated memory . Cast this pointer to match the user-defined buffer or structure for which memory is allocated .
NULL Function cannot allocate memory .
mi_realloc() The function will not throw when encountering a runtime error MI_Exception event . therefore , It will not cause the callback to start .
边栏推荐
- balanced binary tree
- 微信小程序 27 进度条的动态实现和搜索框、热搜榜的静态搭建
- [applet development] common components and basic usage details
- 房地产行业大洗牌
- NPM semantic version control, solution console prop being mutated: "placement" error
- KCon 2022 亮点及议程大揭秘!
- 小程序毕设作品之微信校园维修报修小程序毕业设计成品(1)开发概要
- 阿姆利塔工程学院|用于情感分析的方面术语提取中优化采样的强化主动学习方法
- 【DETR用于3D目标检测】DETR3D: 3D Object Detection from Multi-view Images via 3D-to-2D Queries
- 小程序毕设作品之微信校园维修报修小程序毕业设计成品(6)开题答辩PPT
猜你喜欢

小程序毕设作品之微信校园维修报修小程序毕业设计成品(6)开题答辩PPT

JS learning notes 17: DOM query exercise

Global configuration and page configuration of wechat applet development

哪吒 D1-H 测试 microbench

The finished product of wechat campus maintenance and repair applet graduation design (1) development outline
![[Detr for 3D object detection] 3detr: an end to end transformer model for 3D object detection](/img/22/426bcb8641db5bfe07e8aacf5e8427.png)
[Detr for 3D object detection] 3detr: an end to end transformer model for 3D object detection

Kcon 2022 highlights and agenda revealed!
![[reading notes] deep learning Chapter 1: Introduction](/img/b3/58f71b032cd8f04ecf95d48281a41a.png)
[reading notes] deep learning Chapter 1: Introduction
![[server data recovery] a data recovery case of a brand ProLiant server raid paralysis, database file loss, and database file backup damage](/img/89/92ace2f76beefd258d00d26cd921c9.png)
[server data recovery] a data recovery case of a brand ProLiant server raid paralysis, database file loss, and database file backup damage

由一个蓝桥杯基础题报时助手而引出的常见误区
随机推荐
Youfu force supercomputing provides customized high-performance computing services for customers
解决Win10账户没有了管理员权限
TFIDF examples and explanations
【HDLBits 刷题】Verilog Language(3)Modules: Hierarchy 部分
C# 合并集合
北航等《深度学习事件抽取》文献综述论文,27页pdf阐述当前趋势
JS basic type reference type deep / shallow clone copy
ERROR: role “admin“ cannot be dropped because some objects depend on itDETAIL:
Flutter tips: optimizing the buildcontext you use
安全基础4 ---正则表达式
微信小程序10-微搭模板
Binary tree visualization
房地产行业大洗牌
[wp]ctfshow-web入门-爆破
[919. Complete binary tree inserter]
Old wine in new bottles -- sample analysis of recent apt32 (sea Lotus) organizational attacks
Wxss template style and WXS scripting language for wechat applet development
小程序毕设作品之微信校园维修报修小程序毕业设计成品(4)开题报告
伺服驱动器在机器人上的研究与应用
Leetcode skimming: dynamic programming 07 (different binary search trees)