[fix] PackBytes bug when length < MAX16BIT by huangwei1024 · Pull Request #10 · msgpack/msgpack-go · GitHub
Skip to content

[fix] PackBytes bug when length < MAX16BIT - #10

Open
huangwei1024 wants to merge 2 commits into
msgpack:masterfrom
huangwei1024:master
Open

huangwei1024 wants to merge 2 commits into
msgpack:masterfrom
huangwei1024:master

Conversation

@huangwei1024

Copy link
Copy Markdown
writer.Write(Bytes{RAW16, byte(length >> 16), byte(length)})
return (uint16(data[0]) << 8) | uint16(data[1]), n, nil

pack mismatch with unpack when RAW16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant