5#include "../platform/attributes.hpp"
6#include "../platform/constexpr.hpp"
25REXLIB_CONSTEXPR uint8_t as_uint8(
byte b)
noexcept;
26REXLIB_CONSTEXPR
byte as_byte(uint8_t b)
noexcept;
46template <
class IntegerType>
48template <
class IntegerType>
50template <
class IntegerType>
52template <
class IntegerType>
55REXLIB_CONSTEXPR
byte operator~(
byte b)
noexcept;
56REXLIB_CONSTEXPR
byte operator|(
byte lhs,
byte rhs)
noexcept;
57REXLIB_CONSTEXPR
byte operator&(
byte lhs,
byte rhs)
noexcept;
58REXLIB_CONSTEXPR
byte operator^(
byte lhs,
byte rhs)
noexcept;
59REXLIB_CONSTEXPR
byte& operator|=(
byte&
lhs,
byte rhs)
noexcept;
60REXLIB_CONSTEXPR
byte& operator&=(
byte&
lhs,
byte rhs)
noexcept;
61REXLIB_CONSTEXPR
byte& operator^=(
byte&
lhs,
byte rhs)
noexcept;
63REXLIB_CONSTEXPR std::size_t get_byte_bits()
noexcept;
76 REXLIB_CONSTEXPR
size_t operator()(
rexlib::byte b)
const noexcept;
#define REXLIB_MAY_ALIAS
Declares a type through which objects of any other type may be accessed, as they may through a charac...
Definition attributes.hpp:131
Container for multidimensional numeric data.
Definition array.hpp:31
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
byte * as_bytes(T *ptr) noexcept
View an object as the bytes it is stored in.
byte
A byte of memory.
Definition byte.hpp:23