System::Runtime::InteropServices::Marshal::AllocHGlobal methode

Marshal::AllocHGlobal(int32_t) method

Reserveert niet‑beheerd geheugen.

static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(int32_t bytes_count)
ParameterTypeBeschrijving
bytes_countint32_tVereist aantal bytes.

ReturnValue

Aanwijzer naar het toegewezen geheugen.

Zie ook

Marshal::AllocHGlobal(IntPtr) method

Reserveert niet‑beheerd geheugen.

static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(IntPtr bytes_count)
ParameterTypeBeschrijving
bytes_countIntPtrVereist aantal bytes.

ReturnValue

Aanwijzer naar het toegewezen geheugen.

Zie ook