12#include "../container/module.hpp"
13#include "../macros.hpp"
21namespace hi {
inline namespace v1 {
29 [[
nodiscard]]
virtual hi::const_void_span const_void_span()
const noexcept = 0;
40 [[
nodiscard]] hi::const_void_span const_void_span()
const noexcept override
42 return _value.const_void_span();
72 } : _pimpl(
std::make_shared<detail::resource_view_impl<std::decay_t<T>>>(std::forward<T>(view))) {}
78 return _pimpl ==
nullptr;
81 explicit operator bool()
const noexcept
90 hi_assert_not_null(_pimpl);
91 return _pimpl->const_void_span();
97 static_assert(std::is_const_v<T>);
103 return as_string_view(view.const_void_span());
106 [[
nodiscard]]
friend bstring_view as_bstring_view(const_resource_view
const& view)
noexcept
108 return as_bstring_view(view.const_void_span());
Defines the file_view class.
@ other
The gui_event does not have associated data.
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
Map a file into virtual memory.
Definition file_view_intf.hpp:36
Definition resource_view.hpp:25
Definition resource_view.hpp:33
A read-only view of a resource.
Definition resource_view.hpp:59
hi::const_void_span const_void_span() const noexcept
Get a span to the memory mapping.
Definition resource_view.hpp:88