.. # split from OESystemFunctions.rst:253

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEBWriteData

.. oe:function:: OEBWriteData

   .. oe:api::

      template<class T>
      bool OEBWriteData(OEPlatform::oeostream& ofs, const T& t)

   Write the binary representation of ``t`` to the file stream
   ``ofs``. It is assumed the endian-ness will be stored in a separate
   part of the file to help with decoding later. Returns ``true`` if
   all the data was successfully written.

