|
AppendingBinaryByteStream ()=default |
|
|
|
AppendingBinaryByteStream (llvm::endianness Endian) |
|
|
void |
clear () |
|
|
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. |
|
|
void |
insert (uint64_t Offset, ArrayRef< uint8_t > Bytes) |
|
|
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 > Buffer) 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. |
|
|
BinaryStreamFlags |
getFlags () const override |
|
Return the properties of this stream. |
|
|
MutableArrayRef< uint8_t > |
data () |
|
|
Public Member Functions inherited from llvm::WritableBinaryStream |
|
|
~WritableBinaryStream () override=default |
|
|
virtual Error |
writeBytes (uint64_t Offset, ArrayRef< uint8_t > Data)=0 |
|
Attempt to write the given bytes into the stream at the desired offset. |
|
|
virtual Error |
commit ()=0 |
|
For buffered streams, commits changes to the backing store. |
|
|
BinaryStreamFlags |
getFlags () const override |
|
Return the properties of this stream. |
|
|
Public Member Functions inherited from llvm::BinaryStream |
|
virtual |
~BinaryStream ()=default |
|
|
virtual llvm::endianness |
getEndian () const =0 |
|
|
virtual Error |
readBytes (uint64_t Offset, uint64_t Size, ArrayRef< uint8_t > &Buffer)=0 |
|
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. |
|
|
virtual Error |
readLongestContiguousChunk (uint64_t Offset, ArrayRef< uint8_t > &Buffer)=0 |
|
Given an offset into the stream, read as much as possible without copying any data. |
|
|
virtual uint64_t |
getLength ()=0 |
|
Return the number of bytes of data in this stream. |
|
|
virtual BinaryStreamFlags |
getFlags () const |
|
Return the properties of this stream. |
|
|