27#include <seastar/util/modules.hh>
31SEASTAR_MODULE_EXPORT_BEGIN
33constexpr size_t KB = 1 << 10;
34constexpr size_t MB = 1 << 20;
35constexpr size_t GB = 1 << 30;
37constexpr size_t operator"" _KiB(
unsigned long long n) {
return n << 10; }
38constexpr size_t operator"" _MiB(
unsigned long long n) {
return n << 20; }
39constexpr size_t operator"" _GiB(
unsigned long long n) {
return n << 30; }
40constexpr size_t operator"" _TiB(
unsigned long long n) {
return n << 40; }
42SEASTAR_MODULE_EXPORT_END
Seastar API namespace.
Definition: abort_on_ebadf.hh:26