Add bytes to string function

This commit is contained in:
Dan Paulat 2024-03-21 22:21:03 -05:00
parent 8d706c463c
commit 94726631cb
3 changed files with 103 additions and 0 deletions

View file

@ -9,6 +9,16 @@ namespace scwx
namespace util
{
/**
* @brief Print the number of bytes using a dynamic suffix and limited number of
* decimal points.
*
* @param [in] bytes Number of bytes
*
* @return Human readable size string
*/
std::string BytesToString(std::ptrdiff_t bytes);
/**
* @brief Parse a list of tokens from a string
*