dp-s_doc/Object/Memory/Memory.md

27 lines
491 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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