NOCL  v0.1.0-2524
Modern C++ Class Library for GUI Projects
Bytes.hpp File Reference

Work with bytes, kilobytes, megabytes, ... More...

#include "nocl_core.hpp"
Include dependency graph for Bytes.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 nocl
 

Typedefs

typedef uint64_t nocl::Bytes
 A large unsigned number type which can be used to represent a number of bytes. More...
 

Functions

std::string nocl::approximate_si_bytes (const Bytes b)
 Describe the approximate number of bytes as a text string, using the standard decimal SI units. More...
 
std::string nocl::approximate_iec_bytes (const Bytes b)
 Describe the approximate number of bytes as a text string, using the standard binary IEC units. More...
 
Bytes nocl::KB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::MB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::GB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::TB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::PB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::KB (const int b)
 
Bytes nocl::MB (const int b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::GB (const int b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::TB (const int b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::PB (const int b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::KB (const double b)
 
Bytes nocl::MB (const double b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::GB (const double b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::TB (const double b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::PB (const double b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::KiB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::MiB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::GiB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::TiB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::PiB (const Bytes b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::KiB (const int b)
 
Bytes nocl::MiB (const int b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::GiB (const int b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::TiB (const int b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::PiB (const int b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::KiB (const double b)
 
Bytes nocl::MiB (const double b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::GiB (const double b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::TiB (const double b)
 Convert the given number to kilobytes, megabytes, etc. More...
 
Bytes nocl::PiB (const double b)
 Convert the given number to kilobytes, megabytes, etc. More...
 

Detailed Description

Work with bytes, kilobytes, megabytes, ...