Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CopyToNative< T >()

static unsafe void System.Runtime.InteropServices.Marshal.CopyToNative< T > ( T[] source,
int startIndex,
IntPtr destination,
int length )
inlinestaticprivate

Definition at line 840 of file Marshal.cs.

841 {
842 if (source == null)
843 {
844 throw new ArgumentNullException("source");
845 }
846 if (destination == IntPtr.Zero)
847 {
848 throw new ArgumentNullException("destination");
849 }
850 new Span<T>(source, startIndex, length).CopyTo(new Span<T>((void*)destination, length));
851 }

References System.Span< T >.CopyTo(), System.destination, System.length, System.source, System.startIndex, and System.IntPtr.Zero.