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)
パラメーター説明
コンテナソース コンテナの型。
パラメーター説明
sourceconst container&ソース データ ポインタ。
startIndexintソース開始インデックス。
destinationIntPtr宛先データ ポインタ。
lengthintコピーする要素数。

参照

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)
パラメーター説明
コンテナソース コンテナの型。
パラメーター説明
sourceconst container&ソース データ ポインタ。
startIndexintソース開始インデックス。
destinationvoid *宛先データ ポインタ。
lengthintコピーする要素数。

参照

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)
パラメーター説明
コンテナ宛先コンテナの型。
パラメーター説明
sourceconst IntPtrソース データ ポインタ。
destinationcontainer&&データをコピーするコンテナ。
startIndexintソース開始インデックス。
lengthintコピーする要素数。

参照

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)
パラメーター説明
コンテナ宛先コンテナの型。
パラメーター説明
sourceconst void *ソース データ ポインタ。
destinationcontainer&&データをコピーするコンテナ。
startIndexintソース開始インデックス。
lengthintコピーする要素数。

参照