LLVM: llvm::AppendingBinaryByteStream Class Reference (original) (raw)

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

#include "[llvm/Support/BinaryByteStream.h](BinaryByteStream%5F8h%5Fsource.html)"

Public Member Functions
AppendingBinaryByteStream ()=default
AppendingBinaryByteStream (llvm::endianness Endian)
void clear ()
llvm::endianness getEndian () const override
Error readBytes (uint64_t Offset, uint64_t Size, ArrayRef< uint8_t > &Buffer) override
Given an offset into the stream and a number of bytes, attempt to read the bytes and set the output ArrayRef to point to data owned by the stream.
void insert (uint64_t Offset, ArrayRef< uint8_t > Bytes)
Error readLongestContiguousChunk (uint64_t Offset, ArrayRef< uint8_t > &Buffer) override
Given an offset into the stream, read as much as possible without copying any data.
uint64_t getLength () override
Return the number of bytes of data in this stream.
Error writeBytes (uint64_t Offset, ArrayRef< uint8_t > Buffer) override
Attempt to write the given bytes into the stream at the desired offset.
Error commit () override
For buffered streams, commits changes to the backing store.
BinaryStreamFlags getFlags () const override
Return the properties of this stream.
MutableArrayRef< uint8_t > data ()
- Public Member Functions inherited from llvm::WritableBinaryStream
~WritableBinaryStream () override=default
virtual Error writeBytes (uint64_t Offset, ArrayRef< uint8_t > Data)=0
Attempt to write the given bytes into the stream at the desired offset.
virtual Error commit ()=0
For buffered streams, commits changes to the backing store.
BinaryStreamFlags getFlags () const override
Return the properties of this stream.
- Public Member Functions inherited from llvm::BinaryStream
virtual ~BinaryStream ()=default
virtual llvm::endianness getEndian () const =0
virtual Error readBytes (uint64_t Offset, uint64_t Size, ArrayRef< uint8_t > &Buffer)=0
Given an offset into the stream and a number of bytes, attempt to read the bytes and set the output ArrayRef to point to data owned by the stream.
virtual Error readLongestContiguousChunk (uint64_t Offset, ArrayRef< uint8_t > &Buffer)=0
Given an offset into the stream, read as much as possible without copying any data.
virtual uint64_t getLength ()=0
Return the number of bytes of data in this stream.
virtual BinaryStreamFlags getFlags () const
Return the properties of this stream.
Additional Inherited Members
- Protected Member Functions inherited from llvm::WritableBinaryStream
Error checkOffsetForWrite (uint64_t Offset, uint64_t DataSize)
- Protected Member Functions inherited from llvm::BinaryStream
Error checkOffsetForRead (uint64_t Offset, uint64_t DataSize)

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

This class owns the underlying data.

Definition at line 134 of file BinaryByteStream.h.

llvm::AppendingBinaryByteStream::AppendingBinaryByteStream ( ) default

AppendingBinaryByteStream() [2/2]

llvm::AppendingBinaryByteStream::AppendingBinaryByteStream ( llvm::endianness Endian) inline

clear()

void llvm::AppendingBinaryByteStream::clear ( ) inline

commit()

Error llvm::AppendingBinaryByteStream::commit ( ) inlineoverridevirtual

data()

getEndian()

llvm::endianness llvm::AppendingBinaryByteStream::getEndian ( ) const inlineoverridevirtual

getFlags()

BinaryStreamFlags llvm::AppendingBinaryByteStream::getFlags ( ) const inlineoverridevirtual

getLength()

uint64_t llvm::AppendingBinaryByteStream::getLength ( ) inlineoverridevirtual

insert()

readBytes()

readLongestContiguousChunk()

writeBytes()


The documentation for this class was generated from the following file: