# SpanBufferWriter.BytesWritten

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.adaptors.spanbufferwriter/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.adaptors.spanbufferwriter/properties/)

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

```csharp
public readonly int BytesWritten
```

Gets the number of bytes written.

### Value

The number of bytes written.
