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

Inherited from MutableBinaryByteStream:

Inherited from WritableBinaryStream:

Inherited from BinaryStream:

Methods

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()

Description

For buffered streams, commits changes to the backing store.

Declared at: llvm/include/llvm/Support/BinaryByteStream.h:214

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

Description

Returns a pointer to the start of the buffer.

Declared at: llvm/include/llvm/Support/BinaryByteStream.h:222