tool::endian Namespace Reference

Endianness related compounds. More...


Enumerations

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

Functions

bool need_swap (endianness tag, bool guess_swap)


Detailed Description

Endianness related compounds.

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.

References big, guess, little, raw, and swap.

Referenced by phy::header< Bottom >::eq_80211(), avs::header::mactime_get(), wifi::mactime_tracker< Bottom >::tick(), and rtap::header::tsft_get().


Generated on Thu Feb 21 18:54:22 2008 for wipal by  doxygen 1.5.5