.. # split from OESystemFunctions.rst:169

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEBIntEndian

.. oe:function:: OEBIntEndian

   .. oe:language:: c++ java csharp

      .. oe:api::

         unsigned char OEBIntEndian()
         bool OEBIntEndian(unsigned int)

   .. oe:language:: python

      .. oe:api:: python

         OEBIntEndian() -> str
         OEBIntEndian(arg1: int) -> bool

   The first overload returns a character representing the endian-ness
   of a ``int`` or ``unsigned int`` so that ``int`` or ``unsigned
   int`` data can be directly written to a file. The second overload
   interprets this character and returns ``true`` if the data will
   need to be swapped to match the current machine endian-ness.

