{"action":"created","issue":{"url":"https://api.github.com/repos/lunixbochs/struc/issues/35","repository_url":"https://api.github.com/repos/lunixbochs/struc","labels_url":"https://api.github.com/repos/lunixbochs/struc/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/lunixbochs/struc/issues/35/comments","events_url":"https://api.github.com/repos/lunixbochs/struc/issues/35/events","html_url":"https://github.com/lunixbochs/struc/issues/35","id":131753105,"number":35,"title":"Support Weird Number Encodings","user":{"login":"caffinatedmonkey","id":3277097,"avatar_url":"https://avatars.githubusercontent.com/u/3277097?v=3","gravatar_id":"","url":"https://api.github.com/users/caffinatedmonkey","html_url":"https://github.com/caffinatedmonkey","followers_url":"https://api.github.com/users/caffinatedmonkey/followers","following_url":"https://api.github.com/users/caffinatedmonkey/following{/other_user}","gists_url":"https://api.github.com/users/caffinatedmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/caffinatedmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caffinatedmonkey/subscriptions","organizations_url":"https://api.github.com/users/caffinatedmonkey/orgs","repos_url":"https://api.github.com/users/caffinatedmonkey/repos","events_url":"https://api.github.com/users/caffinatedmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/caffinatedmonkey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-05T20:57:25Z","updated_at":"2016-02-05T21:36:57Z","closed_at":null,"body":"I've found numbers in network protocols which are 3 or 5 bytes long and decoding them is hard."},"comment":{"url":"https://api.github.com/repos/lunixbochs/struc/issues/comments/180566037","html_url":"https://github.com/lunixbochs/struc/issues/35#issuecomment-180566037","issue_url":"https://api.github.com/repos/lunixbochs/struc/issues/35","id":180566037,"user":{"login":"caffinatedmonkey","id":3277097,"avatar_url":"https://avatars.githubusercontent.com/u/3277097?v=3","gravatar_id":"","url":"https://api.github.com/users/caffinatedmonkey","html_url":"https://github.com/caffinatedmonkey","followers_url":"https://api.github.com/users/caffinatedmonkey/followers","following_url":"https://api.github.com/users/caffinatedmonkey/following{/other_user}","gists_url":"https://api.github.com/users/caffinatedmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/caffinatedmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caffinatedmonkey/subscriptions","organizations_url":"https://api.github.com/users/caffinatedmonkey/orgs","repos_url":"https://api.github.com/users/caffinatedmonkey/repos","events_url":"https://api.github.com/users/caffinatedmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/caffinatedmonkey/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T21:36:57Z","updated_at":"2016-02-05T21:36:57Z","body":"I'm trying to develop a client for Boom Beach. Information about the protocol used for this game and other games made by supercell [can be found here](//github.com/clanner/cocdp/wiki/Protocol). The length field is 3 bytes long (big endian). I've currently been decoding it by appending an empty byte to the front then converting it to an integer. I would like to use your library to handle all the encoding/decoding code but I can't because of this.\r\n\r\nThanks!"}}