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

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

Public Member Functions
WritableBinaryStreamRef ()=default
WritableBinaryStreamRef (WritableBinaryStream &Stream)
WritableBinaryStreamRef (WritableBinaryStream &Stream, uint64_t Offset, std::optional< uint64_t > Length)
WritableBinaryStreamRef (MutableArrayRef< uint8_t > Data, llvm::endianness Endian)
WritableBinaryStreamRef (const WritableBinaryStreamRef &Other)=default
WritableBinaryStreamRef & operator= (const WritableBinaryStreamRef &Other)=default
WritableBinaryStreamRef (WritableBinaryStreamRef &&Other)=default
WritableBinaryStreamRef & operator= (WritableBinaryStreamRef &&Other)=default
WritableBinaryStreamRef (WritableBinaryStreamRef &S, uint64_t Offset, uint64_t Length)=delete
Error writeBytes (uint64_t Offset, ArrayRef< uint8_t > Data) const
Given an Offset into this WritableBinaryStreamRef and some input data, writes the data to the underlying stream.
operator BinaryStreamRef () const
Conver this WritableBinaryStreamRef to a read-only BinaryStreamRef.
Error commit ()
For buffered streams, commits changes to the backing store.
- Public Member Functions inherited from llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >
llvm::endianness getEndian () const
uint64_t getLength () const
WritableBinaryStreamRef drop_front (uint64_t N) const
Return a new BinaryStreamRef with the first N elements removed.
WritableBinaryStreamRef drop_back (uint64_t N) const
Return a new BinaryStreamRef with the last N elements removed.
WritableBinaryStreamRef keep_front (uint64_t N) const
Return a new BinaryStreamRef with only the first N elements remaining.
WritableBinaryStreamRef keep_back (uint64_t N) const
Return a new BinaryStreamRef with only the last N elements remaining.
WritableBinaryStreamRef drop_symmetric (uint64_t N) const
Return a new BinaryStreamRef with the first and last N elements removed.
WritableBinaryStreamRef slice (uint64_t Offset, uint64_t Len) const
Return a new BinaryStreamRef with the first Offset elements removed, and retaining exactly Len elements.
bool valid () const
Additional Inherited Members
- Protected Member Functions inherited from llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >
BinaryStreamRefBase ()=default
BinaryStreamRefBase (WritableBinaryStream &BorrowedImpl)
BinaryStreamRefBase (std::shared_ptr< WritableBinaryStream > SharedImpl, uint64_t Offset, std::optional< uint64_t > Length)
BinaryStreamRefBase (WritableBinaryStream &BorrowedImpl, uint64_t Offset, std::optional< uint64_t > Length)
BinaryStreamRefBase (const BinaryStreamRefBase &Other)=default
BinaryStreamRefBase (BinaryStreamRefBase &&Other)=default
BinaryStreamRefBase & operator= (const BinaryStreamRefBase &Other)=default
BinaryStreamRefBase & operator= (BinaryStreamRefBase &&Other)=default
Error checkOffsetForRead (uint64_t Offset, uint64_t DataSize) const
- Protected Attributes inherited from llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >
std::shared_ptr< WritableBinaryStream > SharedImpl
WritableBinaryStream * BorrowedImpl
uint64_t ViewOffset
std::optional< uint64_t > Length

Definition at line 217 of file BinaryStreamRef.h.

llvm::WritableBinaryStreamRef::WritableBinaryStreamRef ( ) default

WritableBinaryStreamRef() [2/7]

WritableBinaryStreamRef() [3/7]

WritableBinaryStreamRef() [4/7]

WritableBinaryStreamRef() [5/7]

WritableBinaryStreamRef() [6/7]

WritableBinaryStreamRef() [7/7]

commit()

Error WritableBinaryStreamRef::commit ( )

operator BinaryStreamRef()

operator=() [1/2]

operator=() [2/2]

writeBytes()


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