We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
msgpack.decode() could read from Uint8Array object seamlessly, as well as Buffer object.
msgpack.decode()
msgpack.encode() should allow an option to write into Uint8Array object, instead of Buffer object.
msgpack.encode()
See also #38
The text was updated successfully, but these errors were encountered:
Proposal A:
var codec = msgpack.createCodec({uint8array: true}); var encoded = msgpack.encode(source, {codec: codec}); Object.prototype.toString.call(encoded); // => [object Uint8Array]
Sorry, something went wrong.
re #39: uint8array option
c5242c6
This can probably be closed, right?
The dat[0].tmp is Uint8Array from msgpack.decode(frame). The ppp is another Uint8Array create for test.
dat[0].tmp
ppp
I tried many codec, but on the python server side, I can't make those two Uint8Array type the same behavior.
OR
No branches or pull requests
msgpack.decode()
could read from Uint8Array object seamlessly, as well as Buffer object.msgpack.encode()
should allow an option to write into Uint8Array object, instead of Buffer object.See also #38
The text was updated successfully, but these errors were encountered: