namespace cutl { /** * @brief Format uint8_t value to a binary string. * * @param value the value to be formatted. * @param separator the separator between each pair of binary characters, default is comma. * @return std::string the formatted string. */ std::string to_bin(uint8_t value, char separator = ','); /** * @brief Format uint16_t value to a binary string. * * @param value the value to be formatted. * @param separator the separator between each pair of binary characters, default is space. * @return std::string the formatted string. */ std::string to_bin(uint16_t value, char separator = ' '); /** * @brief Format uint32_t value to a binary string. * * @param value the value to be formatted. * @param separator the separator between each pair of binary characters, default is space. * @return std::string the formatted string. */ std::string to_bin(uint32_t value, char separator = ' '); /** * @brief Format uint64_t value to a binary string. * * @param value the value to be formatted. * @param separator the separator between each pair of binary characters, default is space. * @return std::string the formatted string. */ std::string to_bin(uint64_t value, char separator = ' '); } // namespace cutl