Skip to content

Unpacking packed data from string #13

@emilsoman

Description

@emilsoman

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:

var packed = "\x81\xA3foo\xA3bar";
msgpack.unpack(packed); // => {foo: 'bar'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions