Added files
This commit is contained in:
11
format_bytes/src/format_bytes.hpp
Normal file
11
format_bytes/src/format_bytes.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
* @brief Convert a given numbers of bytes to a human readable format
|
||||
*
|
||||
* @param n Number of bytes
|
||||
* @return Human readable format of the numbers of bytes
|
||||
*/
|
||||
std::string format_bytes(uint64_t n) noexcept;
|
Reference in New Issue
Block a user