-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decode Array and Uint8Array #28
Comments
kawanet
added a commit
that referenced
this issue
Feb 26, 2016
kawanet
added a commit
that referenced
this issue
Feb 26, 2016
I found that README has mentioned Uint8Array for browser usage. I've added Array and Uint8Array support, then. // decode() also accepts Array instance
msgpack.decode([0x81, 0xA3, 0x66, 0x6F, 0x6F, 0xA3, 0x62, 0x61, 0x72]);
// decode() accepts raw Uint8Array instance as well
msgpack.decode(new Uint8Array([0x81, 0xA3, 0x66, 0x6F, 0x6F, 0xA3, 0x62, 0x61, 0x72])); |
Excellent! Thanks for the fast turn-around. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current version of msgpack.decode() accepts only
Buffer
instance as node.js supportsBuffer
. On browser environment, it'd be useful when msgpack.decode() accepts plain oldArray
andUint8Array
as well asBuffer
.See also:
The text was updated successfully, but these errors were encountered: