forked from OSchip/llvm-project
we aren't at the end of stream until we've consumed all the bytes AND all
the bits in those bytes. llvm-svn: 36861
This commit is contained in:
parent
f985c492e1
commit
eb99789fef
|
@ -101,7 +101,9 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AtEndOfStream() const { return NextChar == LastChar; }
|
bool AtEndOfStream() const {
|
||||||
|
return NextChar == LastChar && BitsInCurWord == 0;
|
||||||
|
}
|
||||||
|
|
||||||
/// GetCurrentBitNo - Return the bit # of the bit we are reading.
|
/// GetCurrentBitNo - Return the bit # of the bit we are reading.
|
||||||
uint64_t GetCurrentBitNo() const {
|
uint64_t GetCurrentBitNo() const {
|
||||||
|
|
Loading…
Reference in New Issue