# WriteShort(short)

> Writes a 2-byte signed short to the current stream and advances the stream position by two bytes.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public bool WriteShort(short value)
```

### Parameters

**** (\[short]\(https\://learn.microsoft.com/dotnet/api/system.int16)): The 2-byte signed short to write.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the write was successful |
