Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Namespaces | Functions
Endian.hpp File Reference
#include <bit>
#include <concepts>
#include <cstdint>
Include dependency graph for Endian.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  toolbox
 
namespace  toolbox::net
 

Functions

constexpr std::uint16_t toolbox::net::bswap (std::uint16_t n) noexcept
 
constexpr std::int16_t toolbox::net::bswap (std::int16_t n) noexcept
 
constexpr std::uint32_t toolbox::net::bswap (std::uint32_t n) noexcept
 
constexpr std::int32_t toolbox::net::bswap (std::int32_t n) noexcept
 
constexpr std::uint64_t toolbox::net::bswap (std::uint64_t n) noexcept
 
constexpr std::int64_t toolbox::net::bswap (std::int64_t n) noexcept
 
template<typename ValueT >
requires std::integral<ValueT>
constexpr ValueT toolbox::net::ntoh (ValueT n) noexcept
 
template<typename ValueT >
requires std::integral<ValueT>
constexpr ValueT toolbox::net::hton (ValueT n) noexcept
 
template<typename ValueT >
requires std::integral<ValueT>
constexpr ValueT toolbox::net::ltoh (ValueT n) noexcept
 
template<typename ValueT >
requires std::integral<ValueT>
constexpr ValueT toolbox::net::htol (ValueT n) noexcept