Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 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;
 }