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

◆ Fill()

void System.Span< T >.Fill ( T value)
inline

Definition at line 211 of file Span.cs.

212 {
213 if (Unsafe.SizeOf<T>() == 1)
214 {
215 Unsafe.InitBlockUnaligned(ref Unsafe.As<T, byte>(ref _pointer.Value), Unsafe.As<T, byte>(ref value), (uint)_length);
216 }
217 else
218 {
219 SpanHelpers.Fill(ref _pointer.Value, (uint)_length, value);
220 }
221 }
static void InitBlockUnaligned(ref byte startAddress, byte value, uint byteCount)
Definition Unsafe.cs:107
readonly ByReference< T > _pointer
Definition Span.cs:50
readonly int _length
Definition Span.cs:52

References System.Span< T >._length, System.Span< T >._pointer, Internal.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(), and System.value.

Referenced by System.Security.Cryptography.Pkcs.Pkcs12Kdf.Derive(), and System.Collections.BitArray.SetAll().