Components/Storage/src/include/Storage/Types.h File Reference
#include <cstdint>
#include <limits>
#include <algorithm>
Include dependency graph for Components/Storage/src/include/Storage/Types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Storage
 

Typedefs

using storage_size_t = uint32_t
 

Functions

bool Storage::isSize64 (uint64_t value)
 Determine if a value requires 64-bits to store. More...
 
bool Storage::isSize64 (int64_t value)
 Determine if a value requires 64-bits to store. More...
 
template<typename T >
constexpr bool Storage::isLog2 (T value)
 Determine if a value is an exact power of 2. More...
 
Get power of 2 for given value
Parameters
valueMust be an exact power of 2
Return values
uint8_tResult n such that value == 1 << n
See also
Use isLog2() to confirm value is power of 2
template<typename T >
constexpr std::enable_if<(sizeof(T)<=4), uint8_t >::type Storage::getSizeBits (T value)
 
template<typename T >
constexpr std::enable_if<(sizeof(T) > 4), uint8_t >::type Storage::getSizeBits (T value)
 

Typedef Documentation

◆ storage_size_t

using storage_size_t = uint32_t