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 | |
| BinaryStreamFlags | getFlags () const override |
| Return the properties of this stream. | |
| Public Member Functions inherited from llvm::BinaryStream | |
| virtual | ~BinaryStream ()=default |
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:
- include/llvm/Support/BinaryByteStream.h