TSDuck Version 3.32-2769 (TSDuck - The MPEG Transport Stream Toolkit)
tsByteSwap.h File Reference

Low-level platform-dependent byte swapping functions. More...

Namespaces

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Functions

uint16_t ts::ByteSwap16 (uint16_t x)
 Inlined function performing byte swap on 16-bit integer data. More...
 
uint32_t ts::ByteSwap24 (uint32_t x)
 Inlined function performing byte swap on 24-bit integer data. More...
 
uint32_t ts::ByteSwap32 (uint32_t x)
 Inlined function performing byte swap on 32-bit integer data. More...
 
uint64_t ts::ByteSwap64 (uint64_t x)
 Inlined function performing byte swap on 64-bit integer data. More...
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
INT ts::CondByteSwap (INT x)
 Template function performing conditional byte swap on integer data to obtain the data in big endian representation. More...
 
uint16_t ts::CondByteSwap16 (uint16_t x)
 Inlined function performing conditional byte swap on 16-bit integer data to obtain the data in big endian representation. More...
 
uint16_t ts::CondByteSwap16BE (uint16_t x)
 Inlined function performing conditional byte swap on 16-bit integer data to obtain the data in big endian representation. More...
 
uint16_t ts::CondByteSwap16LE (uint16_t x)
 Inlined function performing conditional byte swap on 16-bit integer data to obtain the data in little endian representation. More...
 
uint32_t ts::CondByteSwap24 (uint32_t x)
 Inlined function performing conditional byte swap on 24-bit integer data to obtain the data in big endian representation. More...
 
uint32_t ts::CondByteSwap24BE (uint32_t x)
 Inlined function performing conditional byte swap on 24-bit integer data to obtain the data in big endian representation. More...
 
uint32_t ts::CondByteSwap24LE (uint32_t x)
 Inlined function performing conditional byte swap on 24-bit integer data to obtain the data in little endian representation. More...
 
uint32_t ts::CondByteSwap32 (uint32_t x)
 Inlined function performing conditional byte swap on 32-bit integer data to obtain the data in big endian representation. More...
 
uint32_t ts::CondByteSwap32BE (uint32_t x)
 Inlined function performing conditional byte swap on 32-bit integer data to obtain the data in big endian representation. More...
 
uint32_t ts::CondByteSwap32LE (uint32_t x)
 Inlined function performing conditional byte swap on 32-bit integer data to obtain the data in little endian representation. More...
 
uint64_t ts::CondByteSwap64 (uint64_t x)
 Inlined function performing conditional byte swap on 64-bit integer data to obtain the data in big endian representation. More...
 
uint64_t ts::CondByteSwap64BE (uint64_t x)
 Inlined function performing conditional byte swap on 64-bit integer data to obtain the data in big endian representation. More...
 
uint64_t ts::CondByteSwap64LE (uint64_t x)
 Inlined function performing conditional byte swap on 64-bit integer data to obtain the data in little endian representation. More...
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
INT ts::CondByteSwapBE (INT x)
 Template function performing conditional byte swap on integer data to obtain the data in big endian representation. More...
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
INT ts::CondByteSwapLE (INT x)
 Template function performing conditional byte swap on integer data to obtain the data in little endian representation. More...
 
int32_t ts::SignExtend24 (int32_t x)
 Perform a sign extension on 24 bit integers. More...
 
int64_t ts::SignExtend40 (int64_t x)
 Perform a sign extension on 40 bit integers. More...
 
int64_t ts::SignExtend48 (int64_t x)
 Perform a sign extension on 48 bit integers. More...
 

Detailed Description

Low-level platform-dependent byte swapping functions.