Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Functions

NameDescription
ByteSwap(T)

Generic swap that works for any built-in type <= 8 bytes.

ByteSwap(float)

Generic swap that works for any built-in type <= 8 bytes.

ByteSwap(double)

Generic swap that works for any built-in type <= 8 bytes.

ByteSwap16(u16)

Fundamental byte-swapping macros.

ByteSwap32(u32)

Fundamental byte-swapping macros.

ByteSwap32F(float)

Fundamental byte-swapping macros.

ByteSwap64(u64)

Fundamental byte-swapping macros.

ByteSwapArray16(Geo::u16 *, Geo::u32)

Byte swap an array of 16-bit values.

ByteSwapArray32(Geo::u32 *, Geo::u32)

Byte swap an array of 32-bit values.

ByteSwapArray64(Geo::u64 *, Geo::u32)

Byte swap an array of 64-bit values.

ByteSwapArrayFloat(float *, Geo::u32)

Byte swap an array of 32-bit float values.

IsLittleEndian(void)

Returns true if little endian.

WillConvertToCurrentEndian(EConvertEndianMode)

Will a conversion of mode result in moving to the current platform? If the result is true, the (incoming) data should be swapped before use.

Defines

NameDescription
GEO_ARRAY_BSWAP_16 { Geo::ByteSwapArray16(reinterpret_cast<Geo::u16*>(pArray), elementCount); }

Array swapping macros.

GEO_ARRAY_BSWAP_32 { Geo::ByteSwapArray32(reinterpret_cast<Geo::u32*>(pArray), elementCount); }

Array swapping macros.

GEO_ARRAY_BSWAP_32F { Geo::ByteSwapArrayFloat(reinterpret_cast<float*>(pArray), elementCount); }

Array swapping macros.

GEO_ARRAY_BSWAP_64 { Geo::ByteSwapArray64(reinterpret_cast<Geo::u64*>(pArray), elementCount); }

Array swapping macros.

GEO_BSWAP_16 (Geo::ByteSwap16(x))

Fundamental byte-swapping macros.

GEO_BSWAP_32 (Geo::ByteSwap32(x))

Fundamental byte-swapping macros.

GEO_BSWAP_32F (Geo::ByteSwap32F(x))

Fundamental byte-swapping macros.

GEO_BSWAP_64 (Geo::ByteSwap64(x))

Fundamental byte-swapping macros.

Enums

NameDescription
EConvertEndianMode

Enumeration used to control behaviour of various endian swapping functions.


Anchor
ad50f66b216b4bf119955c05c64b68532
ad50f66b216b4bf119955c05c64b68532

T Geo::ByteSwap

...

public: T ByteSwap
(
    T x
)

...

Generic swap that works for any built-in type <= 8 bytes.


Anchor
afc98560d6b14aac604da75b019271a17
afc98560d6b14aac604da75b019271a17

float Geo::ByteSwap

...

public: float ByteSwap
(
    float x
)

...

Generic swap that works for any built-in type <= 8 bytes.


Anchor
a56076d7be5ca7adec183a0ad70e68d26
a56076d7be5ca7adec183a0ad70e68d26

double Geo::ByteSwap

...

public: double ByteSwap
(
    double x
)

...

Generic swap that works for any built-in type <= 8 bytes.


Anchor
a69313145c1b7d2b83408784d472a4884
a69313145c1b7d2b83408784d472a4884

u16 Geo::ByteSwap16

...

public: u16 ByteSwap16
(
    u16 x
)

...

Fundamental byte-swapping macros.


Anchor
a0185167438e9020c2b974ac5b7984d3d
a0185167438e9020c2b974ac5b7984d3d

u32 Geo::ByteSwap32

...

public: u32 ByteSwap32
(
    u32 x
)

...

Fundamental byte-swapping macros.


Anchor
ad9d49162491c988834f0f19a2fc86a1b
ad9d49162491c988834f0f19a2fc86a1b

float Geo::ByteSwap32F

...

public: float ByteSwap32F
(
    float x
)

...

Fundamental byte-swapping macros.


Anchor
abf6f30c829b0e33054b630516f92bdc6
abf6f30c829b0e33054b630516f92bdc6

u64 Geo::ByteSwap64

...

public: u64 ByteSwap64
(
    u64 x
)

...

Fundamental byte-swapping macros.


Anchor
a06a1cae839873880a366c4dc5ed9930d
a06a1cae839873880a366c4dc5ed9930d

void GEO_CALL Geo::ByteSwapArray16

...

public: void GEO_CALL ByteSwapArray16
(
    Geo::u16 * pArray,
    Geo::u32 elementCount
)

...

Byte swap an array of 16-bit values.


Anchor
a1a704a765a95fe0ddeb103e1a7dd6c1d
a1a704a765a95fe0ddeb103e1a7dd6c1d

void GEO_CALL Geo::ByteSwapArray32

...

public: void GEO_CALL ByteSwapArray32
(
    Geo::u32 * pArray,
    Geo::u32 elementCount
)

...

Byte swap an array of 32-bit values.


Anchor
a2ecbdac34696f6df82ddca80fb286d8b
a2ecbdac34696f6df82ddca80fb286d8b

void GEO_CALL Geo::ByteSwapArray64

...

public: void GEO_CALL ByteSwapArray64
(
    Geo::u64 * pArray,
    Geo::u32 elementCount
)

...

Byte swap an array of 64-bit values.


Anchor
a4c94a539c98951cb532cfb80117b0fc9
a4c94a539c98951cb532cfb80117b0fc9

void GEO_CALL Geo::ByteSwapArrayFloat

...

public: void GEO_CALL ByteSwapArrayFloat
(
    float * pArray,
    Geo::u32 elementCount
)

...

Byte swap an array of 32-bit float values.


Anchor
aed492b0e7ff1bc8265278d4ccd4164bc
aed492b0e7ff1bc8265278d4ccd4164bc

bool Geo::IsLittleEndian

...

public: bool IsLittleEndian
(
    void
)

...

Returns true if little endian.


Anchor
a784779410b7233221444da80c0a782ee
a784779410b7233221444da80c0a782ee

bool Geo::WillConvertToCurrentEndian

...

public: bool WillConvertToCurrentEndian
(
    EConvertEndianMode mode
)

...

Will a conversion of mode result in moving to the current platform? If the result is true, the (incoming) data should be swapped before use.

If the result is false, the (outgoing) data should be used before swapped. If the mode is ecemNone, the result is undefined.


Anchor
a52093f2740a3a7831c663d77f0ed61b2
a52093f2740a3a7831c663d77f0ed61b2

EConvertEndianMode

...

public: enum EConvertEndianMode
{
    ecemNone = 0,
    ecemLittleToBig = 1,
    ecemBigToLittle = 2,
    ecemLittleToNative = ecemNone,
    ecemBigToNative = ecemBigToLittle,
    ecemNativeToLittle = ecemNone,
    ecemNativeToBig = ecemLittleToBig
}

...

Enumeration used to control behaviour of various endian swapping functions.

Determines the direction of the conversion operation.

enumerators
ecemNone
ecemLittleToBig
ecemBigToLittle
ecemLittleToNative
ecemBigToNative
ecemNativeToLittle
ecemNativeToBig