## Stream::CopyTo(const SharedPtr\<Stream\>\&) method


Kopierar byte till den angivna strömmen.

```cpp
void System::IO::Stream::CopyTo(const SharedPtr<Stream> &destination)
```


| Parameter | Type | Beskrivning |
| --- | --- | --- |
| destination | const SharedPtr\<Stream\>\& | [Stream](../) som data kommer att kopieras till. |

## Se även

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../)
* Class [Stream](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
## Stream::CopyTo(const SharedPtr\<Stream\>\&, int32_t) method


Kopierar byte till den angivna strömmen, med den angivna buffertstorleken.

```cpp
void System::IO::Stream::CopyTo(const SharedPtr<Stream> &destination, int32_t buffer_size)
```


| Parameter | Type | Beskrivning |
| --- | --- | --- |
| destination | const SharedPtr\<Stream\>\& | [Stream](../) som data kommer att kopieras till. |
| buffer_size | int32_t | Storleken på bufferten. |

## Se även

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