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

割り当てられたメモリへのポインタ。

参照