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)
ParameterBeskrivning
behållareTyp av källbehållare.
ParameterTypeBeskrivning
källaconst container&Pekare till källdata.
startIndexintStartindex för källa.
destinationIntPtrPekare till destinationsdata.
längdintAntal 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)
ParameterBeskrivning
behållareTyp av källbehållare.
ParameterTypeBeskrivning
källaconst container&Pekare till källdata.
startIndexintStartindex för källa.
destinationvoid *Pekare till destinationsdata.
längdintAntal 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)
ParameterBeskrivning
behållareTyp av destinationsbehållare.
ParameterTypeBeskrivning
källaconst IntPtrPekare till källdata.
destinationcontainer&&Behållare att kopiera data till.
startIndexintStartindex för källa.
längdintAntal 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)
ParameterBeskrivning
behållareTyp av destinationsbehållare.
ParameterTypeBeskrivning
källaconst void *Pekare till källdata.
destinationcontainer&&Behållare att kopiera data till.
startIndexintStartindex för källa.
längdintAntal element att kopiera.

Se även