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


バイトを指定されたストリームにコピーします。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| destination | const SharedPtr\<Stream\>\& | データがコピーされる[Stream](../)。 |

## 参照

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


指定されたバッファサイズを使用して、バイトを指定されたストリームにコピーします。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| destination | const SharedPtr\<Stream\>\& | データがコピーされる[Stream](../)。 |
| buffer_size | int32_t | バッファのサイズ。 |

## 参照

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