sparrow 0.6.0
Loading...
Searching...
No Matches
bit.hpp File Reference
#include <algorithm>
#include <array>
#include <bit>
#include <concepts>
Include dependency graph for bit.hpp:

Go to the source code of this file.

Namespaces

namespace  sparrow
 

Functions

template<std::integral T>
constexpr T sparrow::byteswap (T value) noexcept
 Reverses the bytes in the given integer value.
 
template<std::endian input_value_endianess>
constexpr auto sparrow::to_native_endian (std::integral auto value) noexcept