System::Runtime::InteropServices::Marshal::AllocHGlobal 方法
Marshal::AllocHGlobal(int32_t) method
分配非托管内存。
static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(int32_t bytes_count)
| 参数 | 类型 | 描述 |
|---|---|---|
| bytes_count | int32_t | 所需的字节数。 |
ReturnValue
指向已分配内存的指针。
另见
- Class Marshal
- Namespace System::Runtime::InteropServices
- Library Aspose.Font for C++
Marshal::AllocHGlobal(IntPtr) method
分配非托管内存。
static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(IntPtr bytes_count)
| 参数 | 类型 | 描述 |
|---|---|---|
| bytes_count | IntPtr | 所需的字节数。 |
ReturnValue
指向已分配内存的指针。
另见
- Class Marshal
- Namespace System::Runtime::InteropServices
- Library Aspose.Font for C++