{"action":"created","issue":{"url":"https://api.github.com/repos/thestk/stk/issues/55","repository_url":"https://api.github.com/repos/thestk/stk","labels_url":"https://api.github.com/repos/thestk/stk/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/thestk/stk/issues/55/comments","events_url":"https://api.github.com/repos/thestk/stk/issues/55/events","html_url":"https://github.com/thestk/stk/issues/55","id":136392058,"number":55,"title":"Should not care about endianness","user":{"login":"fsateler","id":1322013,"avatar_url":"https://avatars.githubusercontent.com/u/1322013?v=3","gravatar_id":"","url":"https://api.github.com/users/fsateler","html_url":"https://github.com/fsateler","followers_url":"https://api.github.com/users/fsateler/followers","following_url":"https://api.github.com/users/fsateler/following{/other_user}","gists_url":"https://api.github.com/users/fsateler/gists{/gist_id}","starred_url":"https://api.github.com/users/fsateler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsateler/subscriptions","organizations_url":"https://api.github.com/users/fsateler/orgs","repos_url":"https://api.github.com/users/fsateler/repos","events_url":"https://api.github.com/users/fsateler/events{/privacy}","received_events_url":"https://api.github.com/users/fsateler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-02-25T13:48:22Z","updated_at":"2016-08-08T12:55:23Z","closed_at":null,"body":"Most software does not need to care about native endianness, it just needs to convert to/from defined endianness to native when writing/reading, and that does not require actually knowing the native endianness.\r\n\r\nFrom [Rob Pike's blog](http://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html):\r\n\r\n> If the data stream encodes values with byte order B, then the algorithm to decode the value on computer with byte order C should be about B, not about the relationship between B and C.\r\n\r\nThat same post also heplfully describes how to read little or big endian 32 bit numbers: \r\n\r\nLE: `i = (data[0]<<0) | (data[1]<<8) | (data[2]<<16) | (data[3]<<24);`\r\nBE: `i = (data[3]<<0) | (data[2]<<8) | (data[1]<<16) | (data[0]<<24);`\r\n\r\nHowever, it doesn't provide examples on how to write the numbers (which is likely the reverse of the above, but I need to verify first).\r\n\r\nNot critical, but filing as an issue so that I don't forget."},"comment":{"url":"https://api.github.com/repos/thestk/stk/issues/comments/238226749","html_url":"https://github.com/thestk/stk/issues/55#issuecomment-238226749","issue_url":"https://api.github.com/repos/thestk/stk/issues/55","id":238226749,"user":{"login":"arielelkin","id":1756909,"avatar_url":"https://avatars.githubusercontent.com/u/1756909?v=3","gravatar_id":"","url":"https://api.github.com/users/arielelkin","html_url":"https://github.com/arielelkin","followers_url":"https://api.github.com/users/arielelkin/followers","following_url":"https://api.github.com/users/arielelkin/following{/other_user}","gists_url":"https://api.github.com/users/arielelkin/gists{/gist_id}","starred_url":"https://api.github.com/users/arielelkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arielelkin/subscriptions","organizations_url":"https://api.github.com/users/arielelkin/orgs","repos_url":"https://api.github.com/users/arielelkin/repos","events_url":"https://api.github.com/users/arielelkin/events{/privacy}","received_events_url":"https://api.github.com/users/arielelkin/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T12:55:23Z","updated_at":"2016-08-08T12:55:23Z","body":"@fsateler what can be specifically done about this? "}}
{"actor":{"display_login":"arielelkin"}}