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

◆ GetElement< T >()

static T System.Runtime.Intrinsics.Vector128< T >.GetElement< T > ( this Vector128< T > vector,
int index )
inlinestatic
Type Constraints
T :struct 

Definition at line 913 of file Vector128.cs.

913 : struct
914 {
915 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
916 if ((uint)index >= (uint)Vector128<T>.Count)
917 {
918 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
919 }
920 return Unsafe.Add(ref Unsafe.As<Vector128<T>, T>(ref vector), index);
921 }

References System.Runtime.Intrinsics.Vector128< T >.Count, System.index, and System.ThrowHelper.ThrowArgumentOutOfRangeException().