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

◆ ToString() [2/2]

static string System.Collections.Specialized.BitVector32.ToString ( BitVector32 value)
inlinestatic

Definition at line 169 of file BitVector32.cs.

170 {
171 return string.Create(45, value, delegate(Span<char> dst, BitVector32 v)
172 {
173 ReadOnlySpan<char> readOnlySpan = "BitVector32{";
174 readOnlySpan.CopyTo(dst);
175 dst[dst.Length - 1] = '}';
176 int num = (int)v._data;
177 dst = dst.Slice(readOnlySpan.Length, 32);
178 for (int i = 0; i < dst.Length; i++)
179 {
180 dst[i] = (((num & 0x80000000u) != 0L) ? '1' : '0');
181 num <<= 1;
182 }
183 });
184 }

References System.Collections.Specialized.BitVector32._data, System.ReadOnlySpan< T >.CopyTo(), System.L, System.ReadOnlySpan< T >.Length, System.Span< T >.Length, System.Span< T >.Slice(), and System.value.