dp-s_doc/Object/Memory/Memory.md

27 lines
491 B
Markdown
Raw Permalink Normal View History

2025-03-23 18:51:55 +08:00
# Memory 类函数文档
**类说明**
`Memory`类用于服务端内存操作方法。
---
## 一、alloc 函数
### 函数签名
- `function alloc(Size)`
### 返回值
- NativePointer。
### 说明
申请一块指定大小的内存。
---
## 二、allocUtf8String 函数
### 函数签名
- `function allocUtf8String(Str)`
### 返回值
- NativePointer。
### 说明
将字符串转换为内存空间的字符串指针(注意 此内存不可修改)。
---