Dev Essential
Loading...
Searching...
No Matches
ddl::Position Struct Reference

#include <codec_index.h>

Inherited by ddl::codec::PositionWithTypeSize.

Public Member Functions

constexpr bool operator== (const Position &other) const noexcept
 Equality operator.
 
constexpr bool operator!= (const Position &other) const noexcept
 Non-Equality operator.
 

Public Attributes

size_t bit_offset = {}
 the bit offset
 
size_t bit_size = {}
 the elements bitsize (the whole element)
 

Detailed Description

Structure for bit position of elements

Member Function Documentation

◆ operator!=()

bool ddl::Position::operator!= ( const Position & other) const
inlineconstexprnoexcept

Non-Equality operator.

Parameters
otherthe other position to compare to
Returns
false if every single content is the same
true if content is different

◆ operator==()

bool ddl::Position::operator== ( const Position & other) const
inlineconstexprnoexcept

Equality operator.

Parameters
otherthe other position to compare to
Returns
true if every single content is the same
false if content is different

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