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 > |
Zero-overhead span of structures over contiguous memory.