# ArcBufferWriter.Truncate(int)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/ArcBufferWriter.cs#L207-L246)

```csharp
public void Truncate(int length)
```

Truncates this buffer to the specified unconsumed length.

### Parameters

- `length` (`int`): The new length of the unconsumed bytes.
