#include <cstdint>
#include <tuple>
#include <type_traits>
Go to the source code of this file.
|
| template<unsigned Bits> |
| auto | mlab::impl::get_uint_exact () |
| |
| template<unsigned Bits> |
| auto | mlab::impl::get_uint_least () |
| |
| template<byte_order Order, unsigned Bits, class Num > |
| std::array< std::uint8_t, Bits/8 > | mlab::encode (Num n) |
| |
| template<byte_order Order, unsigned Bits, class Num > |
| Num | mlab::decode (std::array< std::uint8_t, Bits/8 > const &b) |
| |
| template<class Num , std::size_t NBytes> |
| constexpr Num | mlab::lsb_unsigned_decode (std::array< std::uint8_t, NBytes > b) |
| |
| template<class Num , std::size_t NBytes, std::size_t I = NBytes - 1> |
| constexpr Num | mlab::msb_unsigned_decode (std::array< std::uint8_t, NBytes > b) |
| |
| template<class Num , std::size_t NBytes> |
| constexpr std::array< std::uint8_t, NBytes > | mlab::lsb_unsigned_encode (Num n) |
| |
| template<class Num , std::size_t NBytes> |
| constexpr std::array< std::uint8_t, NBytes > | mlab::msb_unsigned_encode (Num n) |
| |
| template<class Num , std::size_t NBytes> |
| constexpr Num | mlab::msb_unsigned_decode (std::array< std::uint8_t, NBytes > b) |
| |