ZXFoundation™ 26h2
Loading...
Searching...
No Matches
lib::structure_impl< Extent, Alignment, StructEndian, IsMMIO, FieldOrExts > Class Template Referenceexport
Inheritance diagram for lib::structure_impl< Extent, Alignment, StructEndian, IsMMIO, FieldOrExts >:
[legend]

Public Member Functions

constexpr void apply_default_values () noexcept
 Materialize init<>/fixed<> default values into raw storage.
constexpr auto as_bytes (this auto &self) noexcept -> std::span< u8, extent >
constexpr auto as_bytes (this const auto &self) noexcept -> std::span< const u8, extent >
template<fixed_string Path>
constexpr decltype(auto) get (this auto &&self) noexcept
template<fixed_string Name>
constexpr decltype(auto) operator[] (this auto &&self, field_tag< Name >) noexcept
template<class T>
constexpr auto raw_read (this const auto &self, usize byte_offset) noexcept -> T
template<class T>
constexpr auto raw_write (this auto &&self, usize byte_offset, T val) noexcept -> void
template<fixed_string Path, class ValT>
constexpr decltype(auto) set (this auto &&self, ValT &&val) noexcept
template<class T>
constexpr auto try_raw_read (this const auto &self, usize byte_offset) noexcept -> std::expected< T, kernel_error >
template<class T>
constexpr auto try_raw_write (this auto &&self, usize byte_offset, T val) noexcept -> std::expected< void, kernel_error >

Static Public Member Functions

template<fixed_string Name>
static consteval auto offset_of () noexcept -> usize
template<fixed_string Name>
static consteval auto size_of () noexcept -> usize

Static Public Attributes

static constexpr usize alignment = Layout::alignment
static constexpr usize extent = Layout::extent
static constexpr usize field_count = Layout::field_count
static constexpr auto layout_meta = Layout::meta

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