llvm::SimpleBitstreamCursor

This represents a position within a bitstream. There may be multiple independent cursors reading within one bitstream, each maintaining their own local state.

Synopsis

Declared in <llvm/Bitstream/BitstreamReader.h>

class SimpleBitstreamCursor;

Type Aliases

NameDescription
word_t Host-sized word type used to buffer unread bitstream data.

Member Functions

NameDescription
SimpleBitstreamCursor [constructor]Constructors
AtEndOfStream True if no unread bits remain in the stream.
GetCurrentBitNo Return the bit # of the bit we are reading.
JumpToBit Reset the stream to the specified bit number.
Read Read NumBits bits from the stream.
ReadVBR Read a variable-bit-rate value using NumBits-wide chunks.
ReadVBR64 Read a variable-bit-rate integer with NumBits chunk width.
SizeInBytes Return the size of the stream in bytes.
SkipToFourByteBoundary Advance the cursor to the next 32-bit alignment boundary.
canSkipToPos True if pos is within the buffer or exactly one byte past the end.
fillCurWord Load the next word from the buffer into CurWord.
getBitcodeBytes Return the underlying bitcode byte buffer.
getCurrentByteNo Return the byte index of the current bit position.
getPointerToBit Get a pointer into the bitstream at the specified bit offset.
getPointerToByte Get a pointer into the bitstream at the specified byte offset.
isSizePlausible Check whether a reservation of Size elements is plausible.
skipToEnd Skip to the end of the file.