This is the documentation for Enlighten.
module Endian Conversion
Functions
Name | Description |
|---|---|
Generic swap that works for any built-in type <= 8 bytes. | |
Generic swap that works for any built-in type <= 8 bytes. | |
Generic swap that works for any built-in type <= 8 bytes. | |
Fundamental byte-swapping macros. | |
Fundamental byte-swapping macros. | |
Fundamental byte-swapping macros. | |
Fundamental byte-swapping macros. | |
Byte swap an array of 16-bit values. | |
Byte swap an array of 32-bit values. | |
Byte swap an array of 64-bit values. | |
Byte swap an array of 32-bit float values. | |
Returns true if little endian. | |
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
Name | Description |
|---|---|
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
Name | Description |
|---|---|
Enumeration used to control behaviour of various endian swapping functions. |
T Geo::ByteSwap
public: T ByteSwap
(
T x
)
Generic swap that works for any built-in type <= 8 bytes.