ByteCount< ValueType, Value > Struct Template Reference
Calculates the number of whole bytes needed to store the given value of the given type. More...
#include <ByteCount.h>
Static Public Attributes | |
static const uint16_t | value |
The result of the byte count calculation. |
Detailed Description
template<typename ValueType, ValueType Value>
struct ByteCount< ValueType, Value >
Calculates the number of whole bytes needed to store the given value of the given type.
If the last byte needed to represent the value has only several (less than eight) bits set, this byte is also considered in the result.
- Template Parameters:
-
ValueType The type of the value Value The value to calculate the byte count of
Field Documentation
template<typename ValueType , ValueType Value>
const uint16_t ByteCount< ValueType, Value >::value [static] |
Initial value:
(bitCount % 8 == 0) ? (bitCount / 8) : ((bitCount / 8) + 1)
The result of the byte count calculation.
The documentation for this struct was generated from the following file:
- include/config/type_traits/ByteCount.h