System::Runtime::InteropServices::Marshal::Copy 方法
Marshal::Copy(const container&, int, IntPtr, int) method
实现 public static 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)
| 参数 | 类型 | 描述 |
|---|
| 源 | const container& | 源数据指针。 |
| startIndex | int | 源起始索引。 |
| destination | IntPtr | 目标数据指针。 |
| 长度 | int | 要复制的元素数量。 |
另见
Marshal::Copy(const container&, int, void *, int) method
实现 public static 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)
| 参数 | 类型 | 描述 |
|---|
| 源 | const container& | 源数据指针。 |
| startIndex | int | 源起始索引。 |
| destination | void * | 目标数据指针。 |
| 长度 | int | 要复制的元素数量。 |
另见
Marshal::Copy(const IntPtr, container&&, int, int) method
实现 public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) 语义。
template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const IntPtr source, container &&destination, int startIndex, int length)
| 参数 | 类型 | 描述 |
|---|
| 源 | const IntPtr | 源数据指针。 |
| destination | container&& | 要复制数据的容器。 |
| startIndex | int | 源起始索引。 |
| 长度 | int | 要复制的元素数量。 |
另见
Marshal::Copy(const void *, container&&, int, int) method
实现 public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) 语义。
template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const void *source, container &&destination, int startIndex, int length)
| 参数 | 类型 | 描述 |
|---|
| 源 | const void * | 源数据指针。 |
| destination | container&& | 要复制数据的容器。 |
| startIndex | int | 源起始索引。 |
| 长度 | int | 要复制的元素数量。 |
另见