ZXFoundation™ 26h2
Loading...
Searching...
No Matches
lib::slice< ByteOffset, StartBit, EndBit, Numbering > Struct Template Referenceexport

Bit-window locator within a byte-addressed unit (structure domain). More...

Public Types

using numbering = Numbering

Static Public Attributes

static constexpr usize byte_offset = ByteOffset
static constexpr usize end = EndBit
static constexpr usize end_byte = ByteOffset + (max_bit >> 3) + 1
 Exclusive end byte offset physically touched by this window.
static constexpr usize max_bit = (StartBit <= EndBit) ? EndBit : StartBit
static constexpr usize min_bit = (StartBit <= EndBit) ? StartBit : EndBit
static constexpr usize start = StartBit
static constexpr usize width = max_bit - min_bit + 1

Detailed Description

template<usize ByteOffset, usize StartBit, usize EndBit, class Numbering = msb0_t>
struct lib::slice< ByteOffset, StartBit, EndBit, Numbering >

Bit-window locator within a byte-addressed unit (structure domain).


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