System::Runtime::InteropServices::Marshal::Copy method

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

Implementeert 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)
ParameterBeschrijving
containerBroncontainer type.
ParameterTypeBeschrijving
sourceconst container&Brongegevenspointer.
startIndexintBeginindex van bron.
doelIntPtrDoelgegevenspointer.
lengteintAantal elementen om te kopiëren.

Zie ook

Marshal::Copy(const container&, int, void *, int) method

Implementeert 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)
ParameterBeschrijving
containerBroncontainer type.
ParameterTypeBeschrijving
sourceconst container&Brongegevenspointer.
startIndexintBeginindex van bron.
doelvoid *Doelgegevenspointer.
lengteintAantal elementen om te kopiëren.

Zie ook

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

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

template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const IntPtr source, container &&destination, int startIndex, int length)
ParameterBeschrijving
containerDoelcontainertype.
ParameterTypeBeschrijving
sourceconst IntPtrBrongegevenspointer.
doelcontainer&&Container om gegevens in te kopiëren.
startIndexintBeginindex van bron.
lengteintAantal elementen om te kopiëren.

Zie ook

Marshal::Copy(const void *, container&&, int, int) method

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

template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const void *source, container &&destination, int startIndex, int length)
ParameterBeschrijving
containerDoelcontainertype.
ParameterTypeBeschrijving
sourceconst void *Brongegevenspointer.
doelcontainer&&Container om gegevens in te kopiëren.
startIndexintBeginindex van bron.
lengteintAantal elementen om te kopiëren.

Zie ook