tool::endian Namespace Reference


Detailed Description

Endianness related compounds.


Enumerations

enum  endianness {
  big, little, raw, swap,
  guess
}

Functions

std::ostream & operator<< (std::ostream &, const endianness &e)
bool need_swap (endianness tag, bool guess_swap)


Enumeration Type Documentation

Endianness tag.

Enumerator:
big  Tag a data as big endian.
little  Tag a data as little endian.
raw  Specify the data does not need endianness adjustments.
swap  Specify the data needs to be swapped.
guess  Unknown endianness, algorithm must make a guess.


Function Documentation

bool tool::endian::need_swap ( endianness  tag,
bool  guess_swap 
) [inline]

Return true when conversion from tag to the host byte order needs a swap.

If tag is endian::guess then return guess_swap.


Generated on Tue Dec 2 11:12:17 2008 for wipal by  doxygen 1.5.6