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

◆ WithElement< T >()

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

Definition at line 538 of file Vector64.cs.

538 : struct
539 {
540 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
541 if ((uint)index >= (uint)Vector64<T>.Count)
542 {
543 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
544 }
545 Vector64<T> source = vector;
546 Unsafe.Add(ref Unsafe.As<Vector64<T>, T>(ref source), index) = value;
547 return source;
548 }

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