7#include "void_span.hpp"
15namespace hi::inline
v1 {
53[[nodiscard]]
inline bstring_view as_bstring_view(resource_view
const &rhs)
noexcept
55 return as_bstring_view(rhs.span());
58template<
typename T,
size_t E = std::dynamic_extent>
59[[nodiscard]]
inline std::span<T, E> as_span(resource_view
const& rhs)
noexcept requires(std::is_const_v<T>)
61 return as_span<T, E>(rhs.span());
64template<
typename T,
size_t E = std::dynamic_extent>
65[[nodiscard]]
inline std::span<T, E> as_writable_span(writable_resource_view& rhs)
noexcept
67 return as_span<T, E>(rhs.writable_span());
DOXYGEN BUG.
Definition algorithm.hpp:15
std::string_view as_string_view(resource_view const &rhs) noexcept
Get a span to the memory mapping.
Definition resource_view.hpp:48
A read-only memory mapping of a resource.
Definition resource_view.hpp:19
virtual std::size_t offset() const noexcept=0
Offset into the resource file.
Definition resource_view.hpp:39
virtual void_span writable_span() noexcept=0
Get a span to the memory mapping.
Definition void_span.hpp:19
Definition void_span.hpp:156