Apache Mesos
Classes | Functions
bytes.hpp File Reference
#include <ctype.h>
#include <stdint.h>
#include <iomanip>
#include <iostream>
#include <string>
#include <stout/abort.hpp>
#include <stout/numify.hpp>
#include <stout/stringify.hpp>
#include <stout/strings.hpp>
#include <stout/try.hpp>

Go to the source code of this file.

Classes

class  Bytes
 

Functions

constexpr Bytes Kilobytes (uint64_t value)
 
constexpr Bytes Megabytes (uint64_t value)
 
constexpr Bytes Gigabytes (uint64_t value)
 
constexpr Bytes Terabytes (uint64_t value)
 
std::ostream & operator<< (std::ostream &stream, const Bytes &bytes)
 
Bytes operator+ (const Bytes &lhs, const Bytes &rhs)
 
Bytes operator- (const Bytes &lhs, const Bytes &rhs)
 
Bytes operator* (const Bytes &lhs, uint64_t multiplier)
 
Bytes operator/ (const Bytes &lhs, uint64_t divisor)
 

Function Documentation

constexpr Bytes Gigabytes ( uint64_t  value)
inline
constexpr Bytes Kilobytes ( uint64_t  value)
inline
constexpr Bytes Megabytes ( uint64_t  value)
inline
Bytes operator* ( const Bytes lhs,
uint64_t  multiplier 
)
inline
Bytes operator+ ( const Bytes lhs,
const Bytes rhs 
)
inline
Bytes operator- ( const Bytes lhs,
const Bytes rhs 
)
inline
Bytes operator/ ( const Bytes lhs,
uint64_t  divisor 
)
inline
std::ostream& operator<< ( std::ostream &  stream,
const Bytes bytes 
)
inline
constexpr Bytes Terabytes ( uint64_t  value)
inline