24 public override bool Equals([NotNullWhen(
true)]
object? o)
59 return $
"Section{{0x{value.Mask:x}, 0x{value.Offset:x}}}";
70 public bool this[
int bit]
74 return (
_data & bit) == (uint)bit;
84 _data &= (uint)(~bit);
93 return (
int)((
_data & (uint)(section.Mask << (
int)section.Offset)) >> (int)section.Offset);
97 value <<= (int)section.Offset;
98 int num = (0xFFFF & section.Mask) << (
int)section.Offset;
122 return previous
switch
155 public override bool Equals([NotNullWhen(
true)]
object? o)
159 return _data == bitVector._data;
166 return _data.GetHashCode();
175 dst[dst.Length - 1] =
'}';
176 int num = (int)v.
_data;
178 for (
int i = 0; i < dst.
Length; i++)
180 dst[i] = (((num & 0x80000000u) != 0
L) ?
'1' :
'0');
static int PopCount(uint value)
static uint RoundUpToPowerOf2(uint value)
static string Argument_InvalidValue_TooSmall
static string Format(string resourceFormat, object p1)
static string BitVectorFull
static bool operator==(Section a, Section b)
static bool operator!=(Section a, Section b)
override string ToString()
static string ToString(Section value)
override bool Equals([NotNullWhen(true)] object? o)
Section(short mask, short offset)
override int GetHashCode()
override bool Equals([NotNullWhen(true)] object? o)
static string ToString(BitVector32 value)
override int GetHashCode()
static Section CreateSectionHelper(short maxValue, short priorMask, short priorOffset)
override string ToString()
BitVector32(BitVector32 value)
static int CreateMask(int previous)
static Section CreateSection(short maxValue, Section previous)
static Section CreateSection(short maxValue)
void CopyTo(Span< T > destination)
Span< T > Slice(int start)