mem_packΒΆ

mem_pack converts a 16 bit string (UTF 16) to an 8 bit string.

ssPacked = mem_pack(ssString)

Return Value

Is the byte string.

Parameters

ssString

ssString is a string.

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

History

Version Description
5.0.0 New.

id-369558