{"action":"opened","issue":{"url":"https://api.github.com/repos/mcollina/msgpack5/issues/51","repository_url":"https://api.github.com/repos/mcollina/msgpack5","labels_url":"https://api.github.com/repos/mcollina/msgpack5/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/mcollina/msgpack5/issues/51/comments","events_url":"https://api.github.com/repos/mcollina/msgpack5/issues/51/events","html_url":"https://github.com/mcollina/msgpack5/issues/51","id":188819112,"number":51,"title":"Buffer decode","user":{"login":"pachacutec","id":1857880,"avatar_url":"https://avatars.githubusercontent.com/u/1857880?v=3","gravatar_id":"","url":"https://api.github.com/users/pachacutec","html_url":"https://github.com/pachacutec","followers_url":"https://api.github.com/users/pachacutec/followers","following_url":"https://api.github.com/users/pachacutec/following{/other_user}","gists_url":"https://api.github.com/users/pachacutec/gists{/gist_id}","starred_url":"https://api.github.com/users/pachacutec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pachacutec/subscriptions","organizations_url":"https://api.github.com/users/pachacutec/orgs","repos_url":"https://api.github.com/users/pachacutec/repos","events_url":"https://api.github.com/users/pachacutec/events{/privacy}","received_events_url":"https://api.github.com/users/pachacutec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-11T18:17:37Z","updated_at":"2016-11-11T18:17:37Z","closed_at":null,"body":"Hi, I am receiving a Buffer from net that is encoded with msgpack, but when I tried to decode allways decode first filled.\r\n\r\n```\r\nconst msgpack = require('msgpack5')();\r\nvar _temp = msgpack.encode(1)\r\nvar a = Buffer.from(_temp)\r\n_temp = msgpack.encode(\"Hi this my test\");\r\na = Buffer.concat([a, _temp], a.length + _temp.length)\r\n<Buffer 01 a4 48 6f 6c 61>\r\n msgpack.decode(a)\r\n1\r\n```\r\nHow Can I decode all data?\r\nThanks"}}
{"actor":{"display_login":"pachacutec"}}