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


Implementerar 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 | Beskrivning |
| --- | --- |
| behållare | Typ av källbehållare. |

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| source | const container\& | Pekare till källdata. |
| startIndex | int | Startindex för källan. |
| destination | IntPtr | Pekare till destinationsdata. |
| längd | int | Antal element att kopiera. |

## Se även

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


Implementerar 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 | Beskrivning |
| --- | --- |
| behållare | Typ av källbehållare. |

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| source | const container\& | Pekare till källdata. |
| startIndex | int | Startindex för källan. |
| destination | void * | Pekare till destinationsdata. |
| längd | int | Antal element att kopiera. |

## Se även

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


Implementerar public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) semantik.

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


| Parameter | Beskrivning |
| --- | --- |
| behållare | Destinationens behållartyp. |

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| source | const IntPtr | Pekare till källdata. |
| destination | container\&& | Behållare att kopiera data till. |
| startIndex | int | Startindex för källan. |
| längd | int | Antal element att kopiera. |

## Se även

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


Implementerar public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) semantik.

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


| Parameter | Beskrivning |
| --- | --- |
| behållare | Destinationens behållartyp. |

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| source | const void * | Pekare till källdata. |
| destination | container\&& | Behållare att kopiera data till. |
| startIndex | int | Startindex för källan. |
| längd | int | Antal element att kopiera. |

## Se även

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