kzs_endian.hpp File Reference

Endianness check for Kanzi. More...

Functions

kzBool kzsEndiannessDetectedCorrectly (void)
 Check that endianness is detected correctly. More...
 
KZ_INLINE kzBool kzsIsBigEndian (void)
 Tell if we're on a big-endian system. More...
 

Detailed Description

Endianness check for Kanzi.

Must be extended with new platforms as need be.

Copyright 2008-2017 by Rightware. All rights reserved.

Function Documentation

kzBool kzsEndiannessDetectedCorrectly ( void  )

Check that endianness is detected correctly.

Should only be used in assertions in debug build.

Returns
True if compile-time endianness check resulted in correct endianness.
KZ_INLINE kzBool kzsIsBigEndian ( void  )

Tell if we're on a big-endian system.

Returns
True if in big-endian, false if in little-endian.