{"action":"created","issue":{"url":"https://api.github.com/repos/msgpack/msgpack-c/issues/712","repository_url":"https://api.github.com/repos/msgpack/msgpack-c","labels_url":"https://api.github.com/repos/msgpack/msgpack-c/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/msgpack/msgpack-c/issues/712/comments","events_url":"https://api.github.com/repos/msgpack/msgpack-c/issues/712/events","html_url":"https://github.com/msgpack/msgpack-c/issues/712","id":348250160,"node_id":"MDU6SXNzdWUzNDgyNTAxNjA=","number":712,"title":"msgpack 3.0.1 encodes 16 byte EXT as array and not fixext","user":{"login":"drrlvn","id":38856,"node_id":"MDQ6VXNlcjM4ODU2","avatar_url":"https://avatars2.githubusercontent.com/u/38856?v=4","gravatar_id":"","url":"https://api.github.com/users/drrlvn","html_url":"https://github.com/drrlvn","followers_url":"https://api.github.com/users/drrlvn/followers","following_url":"https://api.github.com/users/drrlvn/following{/other_user}","gists_url":"https://api.github.com/users/drrlvn/gists{/gist_id}","starred_url":"https://api.github.com/users/drrlvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drrlvn/subscriptions","organizations_url":"https://api.github.com/users/drrlvn/orgs","repos_url":"https://api.github.com/users/drrlvn/repos","events_url":"https://api.github.com/users/drrlvn/events{/privacy}","received_events_url":"https://api.github.com/users/drrlvn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-07T09:56:28Z","updated_at":"2018-08-07T12:47:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have an adaptor for `boost::uuids::uuid` that encodes them as EXT that worked well with version 2.1.5.\r\n\r\nWhen I try to upgrade to msgpack-c 3.0.1 the UUID is encoded differently: instead of being encoded as a fixext 16 (`0xd8`, type and 16 bytes) it's encoded as a byte array (`0xc7`, length which is 17 now and then type and data).\r\n\r\nThis is the relevant part of my code in case there's a bug in there somewhere:\r\n\r\n```c++\r\ntemplate<>\r\nstruct object_with_zone<boost::uuids::uuid> {\r\n    void operator()(msgpack::object::with_zone & o, const boost::uuids::uuid & v) const\r\n    {\r\n        o.type = msgpack::type::EXT;\r\n        o.via.ext.size = sizeof(v);\r\n        auto p = static_cast<char *>(o.zone.allocate_align(sizeof(v) + 1));\r\n        p[0] = _MSGPACK_TYPE_UUID;\r\n        std::memcpy(&p[1], v.data, sizeof(v));\r\n        o.via.ext.ptr = p;\r\n    }\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/msgpack/msgpack-c/issues/comments/411043781","html_url":"https://github.com/msgpack/msgpack-c/issues/712#issuecomment-411043781","issue_url":"https://api.github.com/repos/msgpack/msgpack-c/issues/712","id":411043781,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTA0Mzc4MQ==","user":{"login":"redboltz","id":275959,"node_id":"MDQ6VXNlcjI3NTk1OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/275959?v=4","gravatar_id":"","url":"https://api.github.com/users/redboltz","html_url":"https://github.com/redboltz","followers_url":"https://api.github.com/users/redboltz/followers","following_url":"https://api.github.com/users/redboltz/following{/other_user}","gists_url":"https://api.github.com/users/redboltz/gists{/gist_id}","starred_url":"https://api.github.com/users/redboltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redboltz/subscriptions","organizations_url":"https://api.github.com/users/redboltz/orgs","repos_url":"https://api.github.com/users/redboltz/repos","events_url":"https://api.github.com/users/redboltz/events{/privacy}","received_events_url":"https://api.github.com/users/redboltz/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T12:47:27Z","updated_at":"2018-08-07T12:47:27Z","author_association":"CONTRIBUTOR","body":"I've tested using the following code:\r\n\r\nhttps://wandbox.org/permlink/y8xKyiNP8bOwJz2t\r\n\r\nI think that msgpack-c works fine.\r\n\r\nI took a look your `pack` template. I think that the code looks good. \r\nIn order to check the behavior, adding debug print or using debugger.\r\n"}}
{"actor":{"display_login":"redboltz"}}