System::Runtime::InteropServices::Marshal::Copy metod
Marshal::Copy(const container&, int, IntPtr, int) method
Implementerar den offentliga statiska void Copy(char[] source, int startIndex, IntPtr destination, int length).
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 | Type | Beskrivning |
|---|
| källa | const container& | Pekare till källdata. |
| startIndex | int | Startindex för källa. |
| destination | IntPtr | Pekare till destinationsdata. |
| längd | int | Antal element att kopiera. |
Se även
Marshal::Copy(const container&, int, void *, int) method
Implementerar den offentliga statiska void Copy(char[] source, int startIndex, IntPtr destination, int length).
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 | Type | Beskrivning |
|---|
| källa | const container& | Pekare till källdata. |
| startIndex | int | Startindex för källa. |
| destination | void * | Pekare till destinationsdata. |
| längd | int | Antal element att kopiera. |
Se även
Marshal::Copy(const IntPtr, container&&, int, int) method
Implementerar den offentliga statiska void Copy(IntPtr source, byte[] destination, int startIndex, int length)-semantiken.
template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const IntPtr source, container &&destination, int startIndex, int length)
| Parameter | Beskrivning |
|---|
| behållare | Typ av destinationsbehållare. |
| Parameter | Type | Beskrivning |
|---|
| källa | const IntPtr | Pekare till källdata. |
| destination | container&& | Behållare att kopiera data till. |
| startIndex | int | Startindex för källa. |
| längd | int | Antal element att kopiera. |
Se även
Marshal::Copy(const void *, container&&, int, int) method
Implementerar den offentliga statiska void Copy(IntPtr source, byte[] destination, int startIndex, int length)-semantiken.
template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const void *source, container &&destination, int startIndex, int length)
| Parameter | Beskrivning |
|---|
| behållare | Typ av destinationsbehållare. |
| Parameter | Type | Beskrivning |
|---|
| källa | const void * | Pekare till källdata. |
| destination | container&& | Behållare att kopiera data till. |
| startIndex | int | Startindex för källa. |
| längd | int | Antal element att kopiera. |
Se även