## 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.Font 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.Font for C++](../../../)
