30 [[nodiscard]]
virtual size_t offset() const noexcept = 0;
34 [[nodiscard]] virtual
std::span<
std::
byte const>
bytes() const noexcept = 0;
40 operator
std::span<
std::
byte const> () const noexcept {
46 [[nodiscard]]
virtual size_t size() const noexcept = 0;
50 [[nodiscard]] virtual
std::
byte const *
data() const noexcept = 0;
A read-only memory mapping of a resource.
Definition resource_view.hpp:18
virtual std::byte const * data() const noexcept=0
Pointer to the memory mapping.
virtual std::span< std::byte const > bytes() const noexcept=0
Get a span 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.
virtual size_t size() const noexcept=0
Size of the memory mapping.