.. highlightlang:: us .. _mem_pack: mem_pack ======== .. index:: mem_pack .. us.tag mem_pack ENGLISH mem New500 :ref:`mem_pack` converts a 16 bit string (UTF 16) to an 8 bit string. .. function:: ssPacked = mem_pack(ssString) .. us.return **Return Value** Is the byte string. .. us.params **Parameters** .. uparam:: ssString *ssString* is a string. .. us.example **Example** :: * m = "Hello" * mem_dump(m) 00000000 48 00 65 00 6c 00 6c 00-6f 00 H.e.l.l.-o 10.0000 * mp = mem_pack(m) * mem_dump(mp) 00000000 48 65 6c 6c 6f Hello 5.0000 .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.0.0 - New. .. seealso:: :ref:`overview-strings`, :ref:`mem_unpack`, :ref:`mem_dump` :sub:`id-369558`