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

An implementation of WritableBinaryStream backed by an llvm FileOutputBuffer. More...

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

Public Member Functions
FileBufferByteStream (std::unique_ptr< FileOutputBuffer > Buffer, llvm::endianness Endian)
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.
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 > Data) 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.
uint8_t * getBufferStart () const
Returns a pointer to the start of the buffer.
uint8_t * getBufferEnd () const
Returns a pointer to the end of the buffer.
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 backed by an llvm FileOutputBuffer.

Definition at line 201 of file BinaryByteStream.h.

commit()

Error llvm::FileBufferByteStream::commit ( ) inlineoverridevirtual

getBufferEnd()

uint8_t * llvm::FileBufferByteStream::getBufferEnd ( ) const inline

getBufferStart()

uint8_t * llvm::FileBufferByteStream::getBufferStart ( ) const inline

getEndian()

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

getLength()

uint64_t llvm::FileBufferByteStream::getLength ( ) inlineoverridevirtual

readBytes()

readLongestContiguousChunk()

writeBytes()


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