System::Runtime::InteropServices::Marshal::AllocHGlobal method

Marshal::AllocHGlobal(int32_t) method

Allocates unmanaged memory.

static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(int32_t bytes_count)
ParameterTypeDescription
bytes_countint32_tRequired number of bytes.

ReturnValue

Pointer to the allocated memory.

See Also

Marshal::AllocHGlobal(IntPtr) method

Allocates unmanaged memory.

static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(IntPtr bytes_count)
ParameterTypeDescription
bytes_countIntPtrRequired number of bytes.

ReturnValue

Pointer to the allocated memory.

See Also