mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:00:08 +00:00
Add bytes to string function
This commit is contained in:
parent
8d706c463c
commit
94726631cb
3 changed files with 103 additions and 0 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue