{"action":"created","issue":{"url":"https://api.github.com/repos/msgpack/msgpack/issues/197","repository_url":"https://api.github.com/repos/msgpack/msgpack","labels_url":"https://api.github.com/repos/msgpack/msgpack/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/msgpack/msgpack/issues/197/comments","events_url":"https://api.github.com/repos/msgpack/msgpack/issues/197/events","html_url":"https://github.com/msgpack/msgpack/issues/197","id":75927881,"number":197,"title":"Question/suggestion regarding the length of arrays and maps","user":{"login":"rotorz","id":830857,"avatar_url":"https://avatars.githubusercontent.com/u/830857?v=3","gravatar_id":"","url":"https://api.github.com/users/rotorz","html_url":"https://github.com/rotorz","followers_url":"https://api.github.com/users/rotorz/followers","following_url":"https://api.github.com/users/rotorz/following{/other_user}","gists_url":"https://api.github.com/users/rotorz/gists{/gist_id}","starred_url":"https://api.github.com/users/rotorz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rotorz/subscriptions","organizations_url":"https://api.github.com/users/rotorz/orgs","repos_url":"https://api.github.com/users/rotorz/repos","events_url":"https://api.github.com/users/rotorz/events{/privacy}","received_events_url":"https://api.github.com/users/rotorz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T10:03:13Z","updated_at":"2016-03-03T02:09:08Z","closed_at":null,"body":"The specification requires that the number of elements inside the array or map is declared ahead of time immediately after the format code.\r\n\r\nWould it be useful to define a format code which marks the end of an array or map so that the number of elements doesn't need to be defined? This would make it easier to send arrays and maps of unknown lengths across a stream.\r\n\r\n    +--------+~~~~~~~~~~~~~~~~~+--------+\r\n    |???????0|    N objects    |???????1|\r\n    +--------+~~~~~~~~~~~~~~~~~+--------+\r\n\r\n    where\r\n    * ???????0 is the format code for the start of an array\r\n    * ???????1 is the format code for the end of an array\r\n    * N is some unspecified number of objects"},"comment":{"url":"https://api.github.com/repos/msgpack/msgpack/issues/comments/191540704","html_url":"https://github.com/msgpack/msgpack/issues/197#issuecomment-191540704","issue_url":"https://api.github.com/repos/msgpack/msgpack/issues/197","id":191540704,"user":{"login":"lyrachord","id":11712923,"avatar_url":"https://avatars.githubusercontent.com/u/11712923?v=3","gravatar_id":"","url":"https://api.github.com/users/lyrachord","html_url":"https://github.com/lyrachord","followers_url":"https://api.github.com/users/lyrachord/followers","following_url":"https://api.github.com/users/lyrachord/following{/other_user}","gists_url":"https://api.github.com/users/lyrachord/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrachord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrachord/subscriptions","organizations_url":"https://api.github.com/users/lyrachord/orgs","repos_url":"https://api.github.com/users/lyrachord/repos","events_url":"https://api.github.com/users/lyrachord/events{/privacy}","received_events_url":"https://api.github.com/users/lyrachord/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T02:09:08Z","updated_at":"2016-03-03T02:09:08Z","body":"let's call the format like \"?0 data ?1\" as tag-pattern. and maybe there has need for null-terminated pattern.\r\nFrom MsgPack point, a better solution: \r\nsend data by fixed-length blocks.\r\n\r\nFor unknown length data, sending without length is easy, but the receiver is a pain result."}}