public uint GetCustomValue(UIntMinimumFieldKey key) { if (key.Index < 0) { return(key.Offset); } ArrayChecker(ref _customBits, key.Index); return(GetInteger(_customBits[key.Index], key.Position, key.Mask) + key.Offset); }
public void SetCustomValue(UIntMinimumFieldKey key, uint value) { if (key.Index < 0) { return; } if (key.Offset > value) { throw new Exception("The value can not be lower than the specified minimum value. "); } ArrayChecker(ref _customBits, key.Index); SetInteger(ref _customBits[key.Index], key.Position, key.Mask, value - key.Offset); }
public void SetCustomValue(UIntMinimumFieldKey key, uint value) { if (key.Index < 0) { return; } if (key.Offset > value) { throw new Exception("The value can not be lower than the specified minimum value. "); } ArrayChecker(ref _customBits, key.Index); SetInteger(ref _customBits[key.Index], key.Position, key.Mask, value - key.Offset); }
public uint GetCustomValue(UIntMinimumFieldKey key) { if (key.Index < 0) { return key.Offset; } ArrayChecker(ref _customBits, key.Index); return GetInteger(_customBits[key.Index], key.Position, key.Mask) + key.Offset; }