AllocHGlobal()

Marshal::AllocHGlobal(int32_t) method

Allocates unmanaged memory.

static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(int32_t bytes_count)

Arguments

ParameterTypeDescription
bytes_countint32_tRequired number of bytes.

Return Value

Pointer to the allocated memory.

Marshal::AllocHGlobal(IntPtr) method

Allocates unmanaged memory.

static IntPtr System::Runtime::InteropServices::Marshal::AllocHGlobal(IntPtr bytes_count)

Arguments

ParameterTypeDescription
bytes_countIntPtrRequired number of bytes.

Return Value

Pointer to the allocated memory.

See Also