evio  6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ByteOrder.h File Reference
#include <string>
#include <iostream>

Go to the source code of this file.

Classes

class  evio::ByteOrder
 Numerical values associated with endian byte order. More...
 

Namespaces

 evio
 Copyright (c) 2019, Jefferson Science Associates.
 

Macros

#define SWAP_16(x)
 Macro for swapping 16 bit types. More...
 
#define SWAP_32(x)
 Macro for swapping 32 bit types. More...
 
#define SWAP_64(x)
 Macro for swapping 64 bit types. More...
 

Macro Definition Documentation

#define SWAP_16 (   x)
#define SWAP_64 (   x)
Value:
((uint64_t)((((uint64_t)(x)) >> 56) | \
(((uint64_t)(x) & 0x00ff000000000000ULL) >> 40) | \
(((uint64_t)(x) & 0x0000ff0000000000ULL) >> 24) | \
(((uint64_t)(x) & 0x000000ff00000000ULL) >> 8) | \
(((uint64_t)(x) & 0x00000000ff000000ULL) << 8) | \
(((uint64_t)(x) & 0x0000000000ff0000ULL) << 24) | \
(((uint64_t)(x) & 0x000000000000ff00ULL) << 40) | \
(((uint64_t)(x)) << 56)))

Macro for swapping 64 bit types.

Referenced by evio::ByteOrder::byteSwap64(), evio::Writer::close(), evio::BaseStructure::getDoubleData(), evio::ByteBuffer::getLong(), evio::BaseStructure::getLongData(), evio::ByteBuffer::getULong(), evio::BaseStructure::getULongData(), evio::ByteBuffer::putLong(), and evio::CompositeData::swapData().