# JournalBufferReader.ToArray

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/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.
