# JournalBufferReader.ToArray

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.journalbufferreader/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.journalbufferreader/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Journaling/JournalBufferReader.cs#L82-L84)

```csharp
public byte[] ToArray()
```

Copies the remaining bytes into a new array without reading them.

### Returns

A byte array containing the remaining bytes.
