#include "llvm/Support/BinaryStreamRef.h"
#include "llvm/Support/BinaryByteStream.h"
usingnamespacellvm;
namespace {
class ArrayRefImpl : public BinaryStream { … };
class MutableArrayRefImpl : public WritableBinaryStream { … };
}
BinaryStreamRef::BinaryStreamRef(BinaryStream &Stream)
: … { … }
BinaryStreamRef::BinaryStreamRef(BinaryStream &Stream, uint64_t Offset,
std::optional<uint64_t> Length)
: … { … }
BinaryStreamRef::BinaryStreamRef(ArrayRef<uint8_t> Data, endianness Endian)
: … { … }
BinaryStreamRef::BinaryStreamRef(StringRef Data, endianness Endian)
: … { … }
Error BinaryStreamRef::readBytes(uint64_t Offset, uint64_t Size,
ArrayRef<uint8_t> &Buffer) const { … }
Error BinaryStreamRef::readLongestContiguousChunk(
uint64_t Offset, ArrayRef<uint8_t> &Buffer) const { … }
WritableBinaryStreamRef::WritableBinaryStreamRef(WritableBinaryStream &Stream)
: … { … }
WritableBinaryStreamRef::WritableBinaryStreamRef(WritableBinaryStream &Stream,
uint64_t Offset,
std::optional<uint64_t> Length)
: … { … }
WritableBinaryStreamRef::WritableBinaryStreamRef(MutableArrayRef<uint8_t> Data,
endianness Endian)
: … { … }
Error WritableBinaryStreamRef::writeBytes(uint64_t Offset,
ArrayRef<uint8_t> Data) const { … }
operator BinaryStreamRef()
Error WritableBinaryStreamRef::commit() { … }