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