.. # split from OESystemFunctions.rst:232

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEBShortEndian

.. oe:function:: OEBShortEndian

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

      .. oe:api::

         unsigned char OEBShortEndian()
         bool OEBShortEndian(unsigned int)

   .. oe:language:: python

      .. oe:api:: python

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

   The first overload returns a character representing the endian-ness
   of a ``short`` so that ``short`` 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.

