当前位置:网站首页>GBASE 8s UDR内存管理_03_mi_realloc
GBASE 8s UDR内存管理_03_mi_realloc
2022-07-25 19:21:00 【八珍豆腐】
函数mi_realloc的作用是:将用户内存块重新分配到指定大小,并返回指向该块的指针。
语法
void *mi_realloc(void *ptr, mi_integer size)
mi_integer size;
ptr指向内存块的指针.
size要重新分配的字节数。
在客户端LIBMI应用程序中有效? | 在用户定义的例程中有效? |
是 | 是 |
用法
mi_realloc()函数将用户内存的大小更改为指定的大小,并使用当前默认的内存持续时间。如果ptr参数为NULL,那么mi_realloc()是一个用户内存的构造函数,其行为与mi_alloc()相同。
函数的作用是:返回一个指向重新分配的用户内存的指针。转换此指针以匹配您分配的用户定义缓冲区或结构的结构。当不再需要mi_realloc()分配的内存时,DataBlade API模块可以使用mi_free()来释放该内存。
返回值
一个空指针
指向重新分配内存的指针。强制转换此指针以匹配为其分配内存的用户定义缓冲区或结构。
NULL函数无法分配内存。
mi_realloc()函数在遇到运行时错误时不会抛出MI_Exception事件。因此,它不会导致回调启动。
边栏推荐
- 歌曲转调之后和弦如何转换
- Istio exposes applications to the Internet
- Solve the problem that the win10 account has no administrator rights
- 小程序毕设作品之微信校园维修报修小程序毕业设计成品(4)开题报告
- Real estate enterprises have launched a "war of guarantee"
- Pymoo learning (8):grades
- Improvement of wechat applet 28 hot search list ①
- Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 1)
- 【919. 完全二叉树插入器】
- 【小程序开发】常用组件及基本使用详解
猜你喜欢

常用的开发软件下载地址
![[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

网上商城系统MySql数据库设计项目实战

Based on easycv to reproduce Detr and dab-detr, the correct opening method of object query

Istio exposes applications to the Internet

小程序毕设作品之微信校园维修报修小程序毕业设计成品(3)后台功能

Imperial cms7.5 imitation "question and answer library" question and answer learning platform website source code with mobile version

二叉树可视化

Improvement of wechat applet 29 hot search list ②

How to analyze qiime2 after obtaining picrust2 results
随机推荐
Fruit chain "siege": it's a journey of sweetness and bitterness next to apples
Alibaba cloud free SSL certificate application detailed process
Swift 基础 Codable(JSONEncoder JSONDecoder)的使用
How to be a self disciplined person?
Sccm2012r2 network deployment reinstallation system
Pymoo learning (7): Parallelization
【HDLBits 刷题】Verilog Language(3)Modules: Hierarchy 部分
telnet安装以及telnet(密码正确)无法登录!
小程序毕设作品之微信校园维修报修小程序毕业设计成品(4)开题报告
Pymoo学习 (5):收敛性分析
微信小程序 26 播放音乐页的完善②
网络数据包多层传输演示
Common development software download addresses
高端旗舰投影仪选购指南:当贝X3 Pro、当贝F5观影更沉浸!
微信小程序 28 热搜榜的完善①
Solve the problem that the win10 account has no administrator rights
基础乐理之音程的度数
华为交换机系统软件升级和安全漏洞修复教程
Talk about 11 tips for interface performance optimization
Eve - 0day Threat Intelligence