class FileBufferByteStream::StreamImpl
Declaration
class FileBufferByteStream::StreamImpl
: public MutableBinaryByteStream { /* full declaration omitted */ };
Description
An implementation of BinaryStream which holds its entire data set in a single contiguous buffer. As with BinaryByteStream, the mutable version also guarantees that no read operation will ever incur a copy, and similarly it does not own the underlying buffer.
Declared at: llvm/include/llvm/Support/BinaryByteStream.h:204
Inherits from: MutableBinaryByteStream
Member Variables
- private std::unique_ptr<FileOutputBuffer> FileBuffer
Method Overview
- public StreamImpl(std::unique_ptr<FileOutputBuffer> Buffer, llvm::support::endianness Endian)
- public llvm::Error commit()
- public uint8_t * getBufferEnd() const
- public uint8_t * getBufferStart() const
Inherited from MutableBinaryByteStream:
- public commit
- public data
- public getEndian
- public getLength
- public readBytes
- public readLongestContiguousChunk
- public writeBytes
Inherited from WritableBinaryStream:
Inherited from BinaryStream:
- protected checkOffsetForRead
- public getEndian
- public getFlags
- public getLength
- public readBytes
- public readLongestContiguousChunk
Methods
¶StreamImpl(
std::unique_ptr<FileOutputBuffer> Buffer,
llvm::support::endianness Endian)
StreamImpl(
std::unique_ptr<FileOutputBuffer> Buffer,
llvm::support::endianness Endian)
Declared at: llvm/include/llvm/Support/BinaryByteStream.h:206
Parameters
- std::unique_ptr<FileOutputBuffer> Buffer
- llvm::support::endianness Endian
¶llvm::Error commit()
llvm::Error commit()
Description
For buffered streams, commits changes to the backing store.
Declared at: llvm/include/llvm/Support/BinaryByteStream.h:214
¶uint8_t* getBufferEnd() const
uint8_t* getBufferEnd() const
Description
Returns a pointer to the end of the buffer.
Declared at: llvm/include/llvm/Support/BinaryByteStream.h:225
¶uint8_t* getBufferStart() const
uint8_t* getBufferStart() const
Description
Returns a pointer to the start of the buffer.
Declared at: llvm/include/llvm/Support/BinaryByteStream.h:222