System::Runtime::InteropServices::Marshal::Copy metod

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

Implementerar 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)
ParameterBeskrivning
behållareTyp av källbehållare.
ParameterTypBeskrivning
sourceconst container&Pekare till källdata.
startIndexintStartindex för källan.
destinationIntPtrPekare till destinationsdata.
längdintAntal element att kopiera.

Se även

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

Implementerar 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)
ParameterBeskrivning
behållareTyp av källbehållare.
ParameterTypBeskrivning
sourceconst container&Pekare till källdata.
startIndexintStartindex för källan.
destinationvoid *Pekare till destinationsdata.
längdintAntal element att kopiera.

Se även

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

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

template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const IntPtr source, container &&destination, int startIndex, int length)
ParameterBeskrivning
behållareDestinationens behållartyp.
ParameterTypBeskrivning
sourceconst IntPtrPekare till källdata.
destinationcontainer&&Behållare att kopiera data till.
startIndexintStartindex för källan.
längdintAntal element att kopiera.

Se även

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

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

template<typename container> static void System::Runtime::InteropServices::Marshal::Copy(const void *source, container &&destination, int startIndex, int length)
ParameterBeskrivning
behållareDestinationens behållartyp.
ParameterTypBeskrivning
sourceconst void *Pekare till källdata.
destinationcontainer&&Behållare att kopiera data till.
startIndexintStartindex för källan.
längdintAntal element att kopiera.

Se även