.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEBio

.. oe:language:: c++

   .. meta::
      :keywords: OEReadDesignUnitFromString

   .. oe:function:: OEReadDesignUnitFromString
   
      .. attention::
   
         |TWOLANGUAGE|
   
      .. oe:api:: c++
   
         bool OEReadDesignUnitFromString(OEDesignUnit& du,
                                         const std::string& input)
   
      Reads the contents of the string ``input`` into an :ref:`OEDesignUnit <OEBio_OEDesignUnit>`
      named ``du``.
      Returns ``true`` if an :ref:`OEDesignUnit <OEBio_OEDesignUnit>` was read successfully,
      and ``false`` otherwise.
   
      .. seealso::
   
         * :ref:`OEDesignUnit <OEBio_OEDesignUnit>` class
         * :oe:func:`OEBio::OEReadDesignUnit` function

.. oe:language:: python

   .. meta::
      :keywords: OEReadDesignUnitFromBytes

   .. oe:function:: OEReadDesignUnitFromBytes
   
      .. attention::
   
         |TWOLANGUAGE|
   
      .. oe:api:: python
   
         OEReadDesignUnitFromBytes(du, input) -> bytes
   
      Reads the contents of the bytes ``input`` into an :ref:`OEDesignUnit <OEBio_OEDesignUnit>`
      named ``du``.
      Returns ``True`` if an :ref:`OEDesignUnit <OEBio_OEDesignUnit>` was read successfully,
      and ``False`` otherwise.
   
      .. seealso::
   
         * :ref:`OEDesignUnit <OEBio_OEDesignUnit>` class
         * :oe:func:`OEBio::OEReadDesignUnit` function
