## Marshal::WriteInt16 method


向内存写入短整数。

```cpp
static void System::Runtime::InteropServices::Marshal::WriteInt16(IntPtr ptr, int offset, int16_t value)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| ptr | IntPtr | 内存缓冲区。 |
| offset | int | 内存缓冲区的偏移。 |
| 值 | int16_t | 写入。 |

## 另见

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