Flutter Impeller
impeller::allocation_size_literals Namespace Reference

Functions

constexpr Bytes operator""_bytes (unsigned long long int size)
 
constexpr KiloBytes operator""_kb (unsigned long long int size)
 
constexpr MegaBytes operator""_mb (unsigned long long int size)
 
constexpr GigaBytes operator""_gb (unsigned long long int size)
 
constexpr KibiBytes operator""_kib (unsigned long long int size)
 
constexpr MebiBytes operator""_mib (unsigned long long int size)
 
constexpr GibiBytes operator""_gib (unsigned long long int size)
 

Function Documentation

◆ operator""_bytes()

constexpr Bytes impeller::allocation_size_literals::operator""_bytes ( unsigned long long int  size)
constexpr

Definition at line 164 of file allocation_size.h.

164  {
165  return Bytes{size};
166 }
AllocationSize< 1u > Bytes

◆ operator""_gb()

constexpr GigaBytes impeller::allocation_size_literals::operator""_gb ( unsigned long long int  size)
constexpr

Definition at line 179 of file allocation_size.h.

179  {
180  return GigaBytes{size};
181 }
AllocationSize< 1 '000u *1 '000u *1 '000u > GigaBytes

◆ operator""_gib()

constexpr GibiBytes impeller::allocation_size_literals::operator""_gib ( unsigned long long int  size)
constexpr

Definition at line 194 of file allocation_size.h.

194  {
195  return GibiBytes{size};
196 }
AllocationSize< 1 '024u *1 '024u *1 '024u > GibiBytes

◆ operator""_kb()

constexpr KiloBytes impeller::allocation_size_literals::operator""_kb ( unsigned long long int  size)
constexpr

Definition at line 169 of file allocation_size.h.

169  {
170  return KiloBytes{size};
171 }
AllocationSize< 1 '000u > KiloBytes

◆ operator""_kib()

constexpr KibiBytes impeller::allocation_size_literals::operator""_kib ( unsigned long long int  size)
constexpr

Definition at line 184 of file allocation_size.h.

184  {
185  return KibiBytes{size};
186 }
AllocationSize< 1 '024u > KibiBytes

◆ operator""_mb()

constexpr MegaBytes impeller::allocation_size_literals::operator""_mb ( unsigned long long int  size)
constexpr

Definition at line 174 of file allocation_size.h.

174  {
175  return MegaBytes{size};
176 }
AllocationSize< 1 '000u *1 '000u > MegaBytes

◆ operator""_mib()

constexpr MebiBytes impeller::allocation_size_literals::operator""_mib ( unsigned long long int  size)
constexpr

Definition at line 189 of file allocation_size.h.

189  {
190  return MebiBytes{size};
191 }
AllocationSize< 1 '024u *1 '024u > MebiBytes