diff --git a/Source/Core/Common/BitField.h b/Source/Core/Common/BitField.h index 85a595239c..59bee7b4b5 100644 --- a/Source/Core/Common/BitField.h +++ b/Source/Core/Common/BitField.h @@ -141,6 +141,8 @@ public: constexpr T Value() const { return Value(std::is_signed()); } constexpr operator T() const { return Value(); } + constexpr std::size_t StartBit() const { return position; } + constexpr std::size_t NumBits() const { return bits; } private: // StorageType is T for non-enum types and the underlying type of T if // T is an enumeration. Note that T is wrapped within an enable_if in the