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

◆ Vector() [4/6]

System.Numerics.Vector< T >.Vector ( ReadOnlySpan< byte > values)
inline

Definition at line 950 of file Vector.cs.

951 {
952 ThrowHelper.ThrowForUnsupportedNumericsVectorBaseType<T>();
953 if (values.Length < Vector<byte>.Count)
954 {
955 Vector.ThrowInsufficientNumberOfElementsException(Vector<byte>.Count);
956 }
957 this = Unsafe.ReadUnaligned<Vector<T>>(ref MemoryMarshal.GetReference(values));
958 }

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