## MemoryStream::WriteTo method


Writes the content of the underlying buffer to the specified stream.

```cpp
virtual void System::IO::MemoryStream::WriteTo(SharedPtr<Stream> stream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | SharedPtr\<Stream\> | The stream to write to |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../stream/)
* Class [MemoryStream](../)
* Namespace [System::IO](../../)
* Library [Aspose.TeX for C++](../../../)
