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

◆ IsMarked() [2/2]

bool System.Collections.Generic.BitHelper.IsMarked ( int bitPosition)
inlinepackage

Definition at line 25 of file BitHelper.cs.

26 {
27 int num = bitPosition / 32;
28 if ((uint)num < (uint)_span.Length)
29 {
30 return (_span[num] & (1 << bitPosition % 32)) != 0;
31 }
32 return false;
33 }
int Length
Definition Span.cs:70

References System.Collections.Generic.BitHelper._span, and System.Span< T >.Length.