Common Functions

namespace srs
namespace common

Functions

template<std::size_t bit_size, std::size_t max, std::size_t min = 0>
std::bitset<max - min> subset(const std::bitset<bit_size> &bits)
template<std::size_t high_size, std::size_t low_size>
std::bitset<high_size + low_size> merge_bits(const std::bitset<high_size> &high_bits, const std::bitset<low_size> &low_bits)
template<std::size_t bit_size>
auto byte_swap(const std::bitset<bit_size> &bits)
template<typename T>
auto gray_to_binary(T gray_val)
auto get_shared_from_this(auto &&obj)
template<typename Enum>
auto get_enum_names()
std::string insert_index_to_filename(std::string_view native_name, int idx)
auto create_coro_task(auto task, const asio::any_io_executor &executor)