Successfully read in file
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user