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

◆ Vector() [3/6]

System.Numerics.Vector< T >.Vector ( T[] values,
int index )
inline

Definition at line 935 of file Vector.cs.

936 {
937 ThrowHelper.ThrowForUnsupportedNumericsVectorBaseType<T>();
938 if (values == null)
939 {
940 throw new NullReferenceException(SR.Arg_NullArgumentNullRef);
941 }
942 if (index < 0 || values.Length - index < Count)
943 {
944 Vector.ThrowInsufficientNumberOfElementsException(Count);
945 }
946 this = Unsafe.ReadUnaligned<Vector<T>>(ref Unsafe.As<T, byte>(ref values[index]));
947 }

References System.SR.Arg_NullArgumentNullRef, System.Numerics.Vector< T >.Count, System.index, System.T, System.Numerics.Vector< T >.ThrowInsufficientNumberOfElementsException(), and System.values.