mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36571 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -72,6 +72,12 @@ public:
|
|||||||
|
|
||||||
bool AtEndOfStream() const { return NextChar == LastChar; }
|
bool AtEndOfStream() const { return NextChar == LastChar; }
|
||||||
|
|
||||||
|
/// GetCurrentBitNo - Return the bit # of the bit we are reading.
|
||||||
|
uint64_t GetCurrentBitNo() const {
|
||||||
|
return CurWord * 32ULL + (32-CurCodeSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
uint32_t Read(unsigned NumBits) {
|
uint32_t Read(unsigned NumBits) {
|
||||||
// If the field is fully contained by CurWord, return it quickly.
|
// If the field is fully contained by CurWord, return it quickly.
|
||||||
if (BitsInCurWord >= NumBits) {
|
if (BitsInCurWord >= NumBits) {
|
||||||
|
Reference in New Issue
Block a user