# Reader.GetVarIntByteCount(byte)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/Reader.cs#L185)

```csharp
public static int GetVarIntByteCount(byte firstByte)
```

Gets the byte count for a variable-width integer from its first byte.

### Parameters

- `firstByte` (`byte`): The first byte of the encoded variable-width integer.

### Returns

The encoded byte count indicated by `firstByte`.
