TSDuck v3.40-3968
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::smaller_unsigned< BITS > Struct Template Reference

Define the smaller unsigned integer type with at least a given number of bits. More...

#include <tsIntegerUtils.h>

Public Types

using type = typename std::conditional< BITS<=8, uint8_t, typename std::conditional< BITS<=16, uint16_t, typename std::conditional< BITS<=32, uint32_t, typename std::conditional< BITS<=64, uint64_t, void >::type >::type >::type >::type
 The smaller unsigned integer type with at list BITS bits.
 

Detailed Description

template<const size_t BITS>
struct ts::smaller_unsigned< BITS >

Define the smaller unsigned integer type with at least a given number of bits.

Template Parameters
BITSMinimum number of bits. Must be in the range 0 to 64.

The documentation for this struct was generated from the following file: