## Marshal::AllocHGlobal(int32_t) method


Allocates unmanaged memory.

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


| Parameter | Type | Description |
| --- | --- | --- |
| bytes_count | int32_t | Required number of bytes. |

### ReturnValue

Pointer to the allocated memory.

## See Also

* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.TeX for C++](../../../)
## Marshal::AllocHGlobal(IntPtr) method


Allocates unmanaged memory.

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


| Parameter | Type | Description |
| --- | --- | --- |
| bytes_count | IntPtr | Required number of bytes. |

### ReturnValue

Pointer to the allocated memory.

## See Also

* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.TeX for C++](../../../)
