BitStream
|
Typedefs | |
template<typename T , typename Stream , typename... Args> | |
using | has_serialize_t = std::void_t< decltype(serialize_traits< T >::serialize(std::declval< Stream & >(), std::declval< Args >()...))> |
template<typename T , typename R = bool> | |
using | is_writing_t = std::enable_if_t< T::writing, R > |
template<typename T , typename R = bool> | |
using | is_reading_t = std::enable_if_t< T::reading, R > |
template<typename T > | |
using | base_t = typename std::remove_const_t< std::remove_pointer_t< std::decay_t< T > >> |
template<typename Trait , typename Stream , typename... Args> | |
using | deduce_trait_t = typename deduce_trait< void, Trait, Stream, Args... >::type |
template<typename Trait , typename Stream , typename... Args> | |
using | has_deduce_serialize_t = has_serialize_t< deduce_trait_t< Trait, Stream, Args... >, Stream, Trait, Args... > |
Functions | |
constexpr uint32_t | bits_to_represent (uintmax_t n) |
constexpr uint32_t | bits_in_range (intmax_t min, intmax_t max) |
constexpr uint32_t | crc_uint32 (const uint8_t *bytes, uint32_t size) |
constexpr uint32_t | crc_uint32 (const uint8_t *checksum, const uint8_t *bytes, uint32_t size) |
constexpr bool | little_endian () |
uint32_t | endian_swap32 (uint32_t value) |
uint32_t | to_big_endian32 (uint32_t value) |
Variables | |
constexpr auto | CHECKSUM_TABLE |
template<typename T , typename Stream , typename... Args> | |
constexpr bool | has_serialize_v = has_serialize<void, T, Stream, Args...>::value |
template<typename T , typename Stream , typename... Args> | |
constexpr bool | is_serialize_noexcept_v = is_serialize_noexcept<void, T, Stream, Args...>::value |
template<typename Trait , typename Stream , typename... Args> | |
constexpr bool | is_deduce_serialize_noexcept_v = is_serialize_noexcept_v<deduce_trait_t<Trait, Stream, Args...>, Stream, Trait, Args...> |
using bitstream::utility::base_t = typedef typename std::remove_const_t<std::remove_pointer_t<std::decay_t<T> >> |
using bitstream::utility::deduce_trait_t = typedef typename deduce_trait<void, Trait, Stream, Args...>::type |
using bitstream::utility::has_deduce_serialize_t = typedef has_serialize_t<deduce_trait_t<Trait, Stream, Args...>, Stream, Trait, Args...> |
using bitstream::utility::has_serialize_t = typedef std::void_t<decltype(serialize_traits<T>::serialize(std::declval<Stream&>(), std::declval<Args>()...))> |
using bitstream::utility::is_reading_t = typedef std::enable_if_t<T::reading, R> |
using bitstream::utility::is_writing_t = typedef std::enable_if_t<T::writing, R> |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |