Grid3
Functions
Endian.h File Reference
#include <iostream>

Go to the source code of this file.

Functions

bool IsLittleEndian ()
 
bool IsBigEndian ()
 
void ByteSwap (char *b, int n)
 
void ReadFromBigEndian (char *ptr, int nelem, int bytesPerElem, std::istream &is)
 
void WriteToBigEndian (char *ptr, int nelem, int bytesPerElem, std::ostream &os)
 
void ReadFromLittleEndian (char *ptr, int nelem, int bytesPerElem, std::istream &is)
 
void WriteToLittleEndian (char *ptr, int nelem, int bytesPerElem, std::ostream &os)
 

Function Documentation

void ByteSwap ( char *  b,
int  n 
)
inline
bool IsBigEndian ( )
inline
bool IsLittleEndian ( )
inline
void ReadFromBigEndian ( char *  ptr,
int  nelem,
int  bytesPerElem,
std::istream &  is 
)
inline
void ReadFromLittleEndian ( char *  ptr,
int  nelem,
int  bytesPerElem,
std::istream &  is 
)
inline
void WriteToBigEndian ( char *  ptr,
int  nelem,
int  bytesPerElem,
std::ostream &  os 
)
inline
void WriteToLittleEndian ( char *  ptr,
int  nelem,
int  bytesPerElem,
std::ostream &  os 
)
inline