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

◆ WithElement< T >()

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

Definition at line 924 of file Vector128.cs.

924 : struct
925 {
926 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
927 if ((uint)index >= (uint)Vector128<T>.Count)
928 {
929 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
930 }
931 Vector128<T> source = vector;
932 Unsafe.Add(ref Unsafe.As<Vector128<T>, T>(ref source), index) = value;
933 return source;
934 }

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