llvm::BinaryByteStream

BinaryStream backed by a single contiguous buffer that never copies on read.

Synopsis

Declared in <llvm/Support/BinaryByteStream.h>

class BinaryByteStream
    : public BinaryStream

Description

BinaryByteStream does not own the underlying buffer.

Base Classes

NameDescription
BinaryStreamAn interface for accessing data in a stream-like format without copying.

Member Functions

NameDescription
BinaryByteStream [constructor]Constructors
data Return the underlying contiguous data buffer.
getEndian [virtual]Return the endianness of multi-byte values in this stream.
getFlags [virtual]Return the properties of this stream.
getLength [virtual]Return the number of bytes in this stream.
readBytes [virtual]Read Size bytes starting at Offset without copying.
readLongestContiguousChunk [virtual]Read the longest contiguous chunk starting at Offset without copying.
str Return the underlying buffer as a StringRef.

Protected Member Functions

NameDescription
checkOffsetForRead Check that Offset and DataSize form a valid read range.

Protected Data Members

NameDescription
Data Contiguous bytes that back this stream.
Endian Endianness of multi-byte values in the stream.

Derived Classes

NameDescription
MemoryBufferByteStream BinaryStream whose data is owned by an llvm MemoryBuffer.