roar
Loading...
Searching...
No Matches
include
roar
literals
memory.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
Roar
4
{
5
inline
namespace
Literals
6
{
7
inline
namespace
MemoryLiterals
8
{
9
constexpr
unsigned
long
long
operator
""
_Bytes(
unsigned
long
long
n)
10
{
11
return
n;
12
}
13
14
constexpr
unsigned
long
long
operator
""
_KiB(
unsigned
long
long
n)
15
{
16
return
n * 1024ull;
17
}
18
19
constexpr
unsigned
long
long
operator
""
_MiB(
unsigned
long
long
n)
20
{
21
return
n * 1024ull * 1024ull;
22
}
23
24
constexpr
unsigned
long
long
operator
""
_GiB(
unsigned
long
long
n)
25
{
26
return
n * 1024ull * 1024ull * 1024ull;
27
}
28
29
constexpr
unsigned
long
long
operator
""
_MemoryPage(
unsigned
long
long
n)
30
{
31
return
n * 4_KiB;
32
}
33
}
34
}
35
}
Roar
Definition
authorization.hpp:10
Generated by
1.9.7