Ejemplo n.º 1
0
 public bool OneOf(BytesetData bset)
 {
     if(pos_ < srcLen_ && bset.Matches(src_[pos_]))
     {
         ++pos_; return true;
     }
     return false;
 }
Ejemplo n.º 2
0
 public bool BitsInto(int lowBitNo, int highBitNo, BytesetData toMatch, out int into)
 {
     if (pos_ < srcLen_)
     {
         byte value = (byte)((src_[pos_] >> (lowBitNo - 1)) & ((1 << highBitNo) - 1));
         ++pos_;
         into = value;
         return toMatch.Matches(value);
     }
     into = 0;
     return false;
 }
Ejemplo n.º 3
0
 public bool IntoBits(int lowBitNo, int highBitNo, BytesetData toMatch, out int val)
 {
     return BitsInto(lowBitNo, highBitNo, out val);
 }