# PooledBufferStream.CopyTo(Writer&lt;TBufferWriter&gt;)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/Adaptors/PooledBufferStream.cs#L87-L94)

```csharp
public void CopyTo<TBufferWriter>(ref Writer<TBufferWriter> writer)
```

Copies the contents of this writer to another writer.

### Parameters

- `writer` (`Writer<TBufferWriter>`)
