Successfully read in file

This commit is contained in:
2023-03-27 20:43:18 +02:00
parent 50eaedde6a
commit 206c95f295
3 changed files with 9 additions and 2 deletions

View File

@@ -5,6 +5,8 @@
namespace JabyEngine {
namespace bit {
template<typename T>
static constexpr T set(T raw_value, size_t bit);
namespace value {
template<typename T>
static constexpr T set_normalized(T raw_value, T value, size_t start_bit, size_t length);
@@ -27,6 +29,11 @@ namespace JabyEngine {
constexpr ClearBit operator!() const {
return ClearBit(this->pos);
}
template<typename T>
constexpr explicit operator T() const {
return bit::set(0, this->pos);
}
};
struct BitRange {