21 lines
456 B
C++
21 lines
456 B
C++
/*
|
|
* Copyright 2015 - 2021 gary@drinkingtea.net
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "types.hpp"
|
|
|
|
namespace ox::units {
|
|
|
|
constexpr uint64_t KB = 1024;
|
|
constexpr uint64_t MB = 1024 * KB;
|
|
constexpr uint64_t GB = 1024 * MB;
|
|
constexpr uint64_t TB = 1024 * GB;
|
|
|
|
}
|