41 PublicsStream::PublicsStream(std::unique_ptr<MappedBlockStream> Stream)
42 : Stream(
std::move(Stream)) {}
66 "Publics Stream does not contain a header.");
71 "Publics Stream does not contain a header.");
74 if (
auto E = PublicsTable.
read(Reader))
79 if (
auto EC = Reader.
readArray(AddressMap, NumAddressMapEntries))
82 "Could not read an address map."));
88 "Could not read a thunk map."));
95 "Could not read a section map."));
99 return make_error<RawError>(raw_error_code::corrupt_file,
100 "Corrupted publics stream.");
uint32_t getThunkTableOffset() const
This class represents lattice values for constants.
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
Error readObject(const T *&Dest)
Get a pointer to an object of type T from the underlying stream, as if by memcpy, and store the resul...
uint16_t getThunkTableSection() const
uint32_t getSymHash() const
Error read(BinaryStreamReader &Reader)
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
static ErrorSuccess success()
Create a success value.
Error joinErrors(Error E1, Error E2)
Concatenate errors.
uint32_t bytesRemaining() const
Lightweight error class with error context and mandatory checking.
Provides read only access to a subclass of BinaryStream.
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...