public int GetCustomValue(IntFieldKey key) { if (key.Index < 0) { return(0); } ArrayChecker(ref _customBits, key.Index); return((int)GetInteger(_customBits[key.Index], key.Position, key.Mask)); }
public void SetCustomValue(IntFieldKey key, int value) { if (key.Index < 0) { return; } if (value < 0) { throw new Exception("The value can not be lower than 0. "); } ArrayChecker(ref _customBits, key.Index); SetInteger(ref _customBits[key.Index], key.Position, key.Mask, (uint)value); }
public int GetCustomValue(IntFieldKey key) { if (key.Index < 0) { return 0; } ArrayChecker(ref _customBits, key.Index); return (int)GetInteger(_customBits[key.Index], key.Position, key.Mask); }