BitstreamReader.h File Reference

#include <support/Buffer.h>
#include <support/ByteOrder.h>
#include <support/StdIO.h>
#include <assert.h>

Go to the source code of this file.

Classes

class  SBitstreamReader
struct  SBitstreamReader::SFragment

Defines

#define SWAP_INT32(uarg)


Define Documentation

#define SWAP_INT32 uarg   ) 
 

Value:

{                                                           \
    uint32_t swapped = uarg ^ ((uarg<<16)|(uarg>>16));      \
    swapped &= 0xFF00FFFF;                                  \
    uarg = (uarg>>8)|(uarg<<24);                            \
    uarg = (swapped >> 8) ^ uarg;                           \
}