ZXFoundation™ 26h2
Loading...
Searching...
No Matches
lib::structure_span< StructT, IsMMIO > Class Template Referenceexport

Zero-overhead span of structures over contiguous memory. More...

Public Types

using element_ref

Public Member Functions

constexpr auto data () const noexcept -> u8 *
constexpr auto operator[] (usize index) const noexcept -> element_ref
constexpr auto size () const noexcept -> usize
constexpr structure_span (void *base_ptr, usize count=static_cast< usize >(-1)) noexcept
constexpr auto try_at (usize index) const noexcept -> std::expected< element_ref, kernel_error >

Detailed Description

template<class StructT, bool IsMMIO = false>
class lib::structure_span< StructT, IsMMIO >

Zero-overhead span of structures over contiguous memory.


The documentation for this class was generated from the following file: