Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }