All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kzs_endian.h File Reference

Endianness check for Kanzi. More...

Functions

KZ_HEADER_BEGIN 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-2020 by Rightware. All rights reserved.

Function Documentation

KZ_HEADER_BEGIN 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.