## Marshal::Copy(const container\&, int, IntPtr, int) method


实现 public static void Copy(char[] source, int startIndex, IntPtr destination, int length)。

```cpp
template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const container &source, int startIndex, IntPtr destination, int length)
```


| Parameter | 描述 |
| --- | --- |
| 容器 | 源容器类型。 |

| Parameter | Type | 描述 |
| --- | --- | --- |
| source | const container\& | 源数据指针。 |
| startIndex | int | 源起始索引。 |
| destination | IntPtr | 目标数据指针。 |
| length | int | 要复制的元素数量。 |

## 另见

* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.Page for C++](../../../)
## Marshal::Copy(const container\&, int, void *, int) method


实现 public static void Copy(char[] source, int startIndex, IntPtr destination, int length)。

```cpp
template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const container &source, int startIndex, void *destination, int length)
```


| Parameter | 描述 |
| --- | --- |
| 容器 | 源容器类型。 |

| Parameter | Type | 描述 |
| --- | --- | --- |
| source | const container\& | 源数据指针。 |
| startIndex | int | 源起始索引。 |
| destination | void * | 目标数据指针。 |
| length | int | 要复制的元素数量。 |

## 另见

* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.Page for C++](../../../)
## Marshal::Copy(const IntPtr, container\&&, int, int) method


实现 public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) 语义。

```cpp
template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const IntPtr source, container &&destination, int startIndex, int length)
```


| Parameter | 描述 |
| --- | --- |
| 容器 | 目标容器类型。 |

| Parameter | Type | 描述 |
| --- | --- | --- |
| source | const IntPtr | 源数据指针。 |
| destination | container\&& | 用于复制数据的容器。 |
| startIndex | int | 源起始索引。 |
| length | int | 要复制的元素数量。 |

## 另见

* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.Page for C++](../../../)
## Marshal::Copy(const void *, container\&&, int, int) method


实现 public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) 语义。

```cpp
template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const void *source, container &&destination, int startIndex, int length)
```


| Parameter | 描述 |
| --- | --- |
| 容器 | 目标容器类型。 |

| Parameter | Type | 描述 |
| --- | --- | --- |
| source | const void * | 源数据指针。 |
| destination | container\&& | 用于复制数据的容器。 |
| startIndex | int | 源起始索引。 |
| length | int | 要复制的元素数量。 |

## 另见

* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.Page for C++](../../../)
