1 #ifndef ZSERIO_BITPOSITION_UTIL_H_INC
2 #define ZSERIO_BITPOSITION_UTIL_H_INC
17 inline size_t alignTo(
size_t alignmentValue,
size_t bitPosition)
19 return (bitPosition > 0 && alignmentValue != 0)
20 ? (((bitPosition - 1) / alignmentValue) + 1) * alignmentValue
size_t alignTo(size_t alignmentValue, size_t bitPosition)