llvm::AppendingBinaryByteStream

An implementation of WritableBinaryStream which can write at its end causing the underlying data to grow. This class owns the underlying data.

Synopsis

Declared in <llvm/Support/BinaryByteStream.h>

class AppendingBinaryByteStream
    : public WritableBinaryStream

Base Classes

NameDescription
WritableBinaryStreamA BinaryStream that supports both reading and writing.

Member Functions

NameDescription
AppendingBinaryByteStream [constructor]Constructors
clear Clear all bytes from the underlying buffer.
commit [virtual]Commit buffered changes; always succeeds for this in-memory stream.
data Return the underlying contiguous mutable 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.
insert Insert Bytes into the stream at Offset, shifting existing data.
readBytes [virtual]Read Size bytes starting at Offset without copying.
readLongestContiguousChunk [virtual]Read the longest contiguous chunk starting at Offset without copying.
writeBytes writeBytes overloads

Protected Member Functions

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