# VarIntReaderExtensions.ReadInt16(Reader&lt;TInput&gt;, WireType)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.varintreaderextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.varintreaderextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Utilities/VarIntReaderExtensions.cs#L169-L178)

```csharp
public static short ReadInt16<TInput>(this ref Reader<TInput> reader, WireType wireType)
```

Reads a variable-width `System.Int16`.

### Parameters

- `reader` (`Reader<TInput>`): The reader.
- `wireType` (`WireType`): The wire type.

### Returns

A variable-width integer.
