ICU 50.1.2  50.1.2
Static Public Member Functions
icu::LESwaps Class Reference

This class is used to access data which stored in big endian order regardless of the conventions of the platform. More...

#include <LESwaps.h>

Static Public Member Functions

static le_uint16 swapWord (le_uint16 value)
 Reads a big-endian 16-bit word and returns a native-endian value. More...
 
static le_uint32 swapLong (le_uint32 value)
 Reads a big-endian 32-bit word and returns a native-endian value. More...
 

Detailed Description

This class is used to access data which stored in big endian order regardless of the conventions of the platform.

All methods are static and inline in an attempt to induce the compiler to do most of the calculations at compile time.

Stable:
ICU 2.8

Definition at line 44 of file LESwaps.h.

Member Function Documentation

static le_uint32 icu::LESwaps::swapLong ( le_uint32  value)
inlinestatic

Reads a big-endian 32-bit word and returns a native-endian value.

No-op on a big-endian platform, byte-swaps on a little-endian platform.

Parameters
value- the long to be byte swapped
Returns
the byte swapped long
Stable:
ICU 2.8

Definition at line 81 of file LESwaps.h.

static le_uint16 icu::LESwaps::swapWord ( le_uint16  value)
inlinestatic

Reads a big-endian 16-bit word and returns a native-endian value.

No-op on a big-endian platform, byte-swaps on a little-endian platform.

Parameters
value- the word to be byte swapped
Returns
the byte swapped word
Stable:
ICU 2.8

Definition at line 57 of file LESwaps.h.


The documentation for this class was generated from the following file: