System::Runtime::InteropServices::Marshal::AllocHGlobal 方法

Marshal::AllocHGlobal(int32_t) method

分配非托管内存。

static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(int32_t bytes_count)
参数类型描述
bytes_countint32_t所需的字节数。

ReturnValue

指向已分配内存的指针。

另见

Marshal::AllocHGlobal(IntPtr) method

分配非托管内存。

static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(IntPtr bytes_count)
参数类型描述
bytes_countIntPtr所需的字节数。

ReturnValue

指向已分配内存的指针。

另见