You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like msgpack.decode assumes the encoded data is an instance of ArrayBuffer. Is there a way to unpack a JS string object containing packed data ? For example:
Note that strings in JavaScript are unicode and not 8-bit arrays. In particular, they are 16-bit arrays (UCS-16). The "raw" encoding is when you treat each 16-bits as a single byte and ignore the higher 8 bits. JavaScript strings normally encode as UTF-8 when converting to raw 8-bit byte arrays so be careful when working with "raw" strings that use the right encoder/decoder when encoding to-from bytes.
Seems like
msgpack.decode
assumes the encoded data is an instance of ArrayBuffer. Is there a way to unpack a JS string object containing packed data ? For example:The text was updated successfully, but these errors were encountered: