29 [[nodiscard]]
virtual size_t offset() const noexcept = 0;
33 [[nodiscard]] virtual nonstd::span<
std::
byte const>
bytes() const noexcept = 0;
45 [[nodiscard]]
virtual size_t size() const noexcept = 0;
49 [[nodiscard]] virtual
std::
byte const *
data() const noexcept = 0;
A read-only memory mapping of a resource.
Definition ResourceView.hpp:17
virtual size_t size() const noexcept=0
Size of the memory mapping.
virtual nonstd::span< std::byte const > bytes() const noexcept=0
Get a span to the memory mapping.
virtual std::byte const * data() const noexcept=0
Pointer to the memory mapping.
virtual size_t offset() const noexcept=0
Offset into the resource file.
virtual std::string_view string_view() const noexcept=0
Get a span to the memory mapping.