tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
byte.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

TETL_ALWAYS_INLINE constexpr auto operator& (etl::byte lhs, etl::byte rhs) noexcept -> etl::byte
 Equivalent to: return byte(static_cast<unsigned int>(lhs) & static_cast<unsigned int>(rhs));
 
TETL_ALWAYS_INLINE constexpr auto operator&= (etl::byte &lhs, etl::byte rhs) noexcept -> etl::byte &
 Equivalent to: return lhs = lhs & rhs;
 
template<etl::integral Int>
TETL_ALWAYS_INLINE constexpr auto operator<< (etl::byte b, Int shift) noexcept -> etl::byte
 Equivalent to: return etl::byte(static_cast<unsigned int>(b) << shift);
 
template<etl::integral Int>
TETL_ALWAYS_INLINE constexpr auto operator<<= (etl::byte &b, Int shift) noexcept -> etl::byte &
 Equivalent to: return b = b << shift;
 
template<etl::integral Int>
TETL_ALWAYS_INLINE constexpr auto operator>> (etl::byte b, Int shift) noexcept -> etl::byte
 Equivalent to: return etl::byte(static_cast<unsigned int>(b) >> shift);
 
template<etl::integral Int>
TETL_ALWAYS_INLINE constexpr auto operator>>= (etl::byte &b, Int shift) noexcept -> etl::byte &
 Equivalent to: return b = b >> shift;
 
TETL_ALWAYS_INLINE constexpr auto operator^ (etl::byte lhs, etl::byte rhs) noexcept -> etl::byte
 Equivalent to: return byte(static_cast<unsigned int>(lhs) ^ static_cast<unsigned int>(rhs));
 
TETL_ALWAYS_INLINE constexpr auto operator^= (etl::byte &lhs, etl::byte rhs) noexcept -> etl::byte &
 Equivalent to: return lhs = lhs ^ rhs;
 
TETL_ALWAYS_INLINE constexpr auto operator| (etl::byte lhs, etl::byte rhs) noexcept -> etl::byte
 Equivalent to: return byte(static_cast<unsigned int>(lhs) | static_cast<unsigned int>(rhs));
 
TETL_ALWAYS_INLINE constexpr auto operator|= (etl::byte &lhs, etl::byte rhs) noexcept -> etl::byte &
 Equivalent to: return lhs = lhs | rhs;
 
TETL_ALWAYS_INLINE constexpr auto operator~ (etl::byte b) noexcept -> etl::byte
 Equivalent to: return byte(~static_cast<unsigned int>(b));
 
template<etl::integral Int>
constexpr auto to_integer (etl::byte b) noexcept -> Int
 Equivalent to: return Int(b);
 

Variables

enum TETL_MAY_ALIAS byte
 etl::byte is a distinct type that implements the concept of byte as specified in the C++ language definition.