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; }
public bool OneOf(BytesetData bset) { if(pos_ < srcLen_ && bset.Matches(src_[pos_])) { ++pos_; return true; } return false; }