{"action":"created","issue":{"url":"https://api.github.com/repos/dvidelabs/flatcc/issues/23","repository_url":"https://api.github.com/repos/dvidelabs/flatcc","labels_url":"https://api.github.com/repos/dvidelabs/flatcc/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/dvidelabs/flatcc/issues/23/comments","events_url":"https://api.github.com/repos/dvidelabs/flatcc/issues/23/events","html_url":"https://github.com/dvidelabs/flatcc/issues/23","id":193478006,"number":23,"title":"Add \"scan_by\" methods to reader interface","user":{"login":"skhoroshavin","id":5670522,"avatar_url":"https://avatars.githubusercontent.com/u/5670522?v=3","gravatar_id":"","url":"https://api.github.com/users/skhoroshavin","html_url":"https://github.com/skhoroshavin","followers_url":"https://api.github.com/users/skhoroshavin/followers","following_url":"https://api.github.com/users/skhoroshavin/following{/other_user}","gists_url":"https://api.github.com/users/skhoroshavin/gists{/gist_id}","starred_url":"https://api.github.com/users/skhoroshavin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skhoroshavin/subscriptions","organizations_url":"https://api.github.com/users/skhoroshavin/orgs","repos_url":"https://api.github.com/users/skhoroshavin/repos","events_url":"https://api.github.com/users/skhoroshavin/events{/privacy}","received_events_url":"https://api.github.com/users/skhoroshavin/received_events","type":"User","site_admin":false},"labels":[{"id":284462060,"url":"https://api.github.com/repos/dvidelabs/flatcc/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-12-05T11:55:19Z","updated_at":"2016-12-13T13:33:15Z","closed_at":null,"body":"Sometimes order of items in array is important, yet it there could be need to find some item in array by some key. In this case the only option is to perform linear search, which is still okay for small number of items (and small number of items seem to be quite frequent case for flatbuffers). Writing search functions manually can be tedious, so it could be great if flatcc generated them automatically, either giving them suffix _unsorted, or generating them in place of usual binary searches when some key is given to flatcc. Or maybe some other way (ukey attribute, instead of key?)"},"comment":{"url":"https://api.github.com/repos/dvidelabs/flatcc/issues/comments/266739256","html_url":"https://github.com/dvidelabs/flatcc/issues/23#issuecomment-266739256","issue_url":"https://api.github.com/repos/dvidelabs/flatcc/issues/23","id":266739256,"user":{"login":"mikkelfj","id":193335,"avatar_url":"https://avatars.githubusercontent.com/u/193335?v=3","gravatar_id":"","url":"https://api.github.com/users/mikkelfj","html_url":"https://github.com/mikkelfj","followers_url":"https://api.github.com/users/mikkelfj/followers","following_url":"https://api.github.com/users/mikkelfj/following{/other_user}","gists_url":"https://api.github.com/users/mikkelfj/gists{/gist_id}","starred_url":"https://api.github.com/users/mikkelfj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikkelfj/subscriptions","organizations_url":"https://api.github.com/users/mikkelfj/orgs","repos_url":"https://api.github.com/users/mikkelfj/repos","events_url":"https://api.github.com/users/mikkelfj/events{/privacy}","received_events_url":"https://api.github.com/users/mikkelfj/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T13:33:15Z","updated_at":"2016-12-13T13:33:15Z","body":"I need some time to inspect this in detail - but the deciding factor is symmetri with the find_by methods.\r\n\r\nThe _n suffix is only for string types I presume. Normally there is _str, _str_n suffix in the api, but it might be implicit in find.\r\n\r\nAs to the offset placed first, I'm not really sure, but it is probably a good idea to have a separate next function, as long as it works the same as without _next when given offset 0."}}
{"actor":{"display_login":"mikkelfj"}}