{"action":"created","issue":{"url":"https://api.github.com/repos/jamesqo/Be.IO/issues/1","repository_url":"https://api.github.com/repos/jamesqo/Be.IO","labels_url":"https://api.github.com/repos/jamesqo/Be.IO/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jamesqo/Be.IO/issues/1/comments","events_url":"https://api.github.com/repos/jamesqo/Be.IO/issues/1/events","html_url":"https://github.com/jamesqo/Be.IO/pull/1","id":147221798,"number":1,"title":"Fix ReadInt64 issue","user":{"login":"UlyssesWu","id":4312781,"avatar_url":"https://avatars.githubusercontent.com/u/4312781?v=3","gravatar_id":"","url":"https://api.github.com/users/UlyssesWu","html_url":"https://github.com/UlyssesWu","followers_url":"https://api.github.com/users/UlyssesWu/followers","following_url":"https://api.github.com/users/UlyssesWu/following{/other_user}","gists_url":"https://api.github.com/users/UlyssesWu/gists{/gist_id}","starred_url":"https://api.github.com/users/UlyssesWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UlyssesWu/subscriptions","organizations_url":"https://api.github.com/users/UlyssesWu/orgs","repos_url":"https://api.github.com/users/UlyssesWu/repos","events_url":"https://api.github.com/users/UlyssesWu/events{/privacy}","received_events_url":"https://api.github.com/users/UlyssesWu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-10T12:37:49Z","updated_at":"2016-04-10T12:45:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jamesqo/Be.IO/pulls/1","html_url":"https://github.com/jamesqo/Be.IO/pull/1","diff_url":"https://github.com/jamesqo/Be.IO/pull/1.diff","patch_url":"https://github.com/jamesqo/Be.IO/pull/1.patch"},"body":"There was a mistake when reading a 8 bytes value.\r\nCan be tested with following code:\r\n\r\n        [TestMethod]\r\n        public void TestUInt64()\r\n        {\r\n            using (MemoryStream ms = new MemoryStream())\r\n            {\r\n                ulong src = 1;\r\n                var bw = new BeBinaryWriter(ms);\r\n                bw.Write(src);\r\n                bw.Flush();\r\n                ms.Seek(0, SeekOrigin.Begin);\r\n                var br = new BeBinaryReader(ms);\r\n                var dst = br.ReadUInt64();\r\n                Assert.AreEqual(src, dst); //Expect 1, Actual 4294967296\r\n            }\r\n        }\r\n\r\nBy the way, I haven't figure out how to create a UnitTest project for this lib --- VS refused to add this lib as a reference when creating a VSUnitTest project. (Maybe DNX project is not supported?)"},"comment":{"url":"https://api.github.com/repos/jamesqo/Be.IO/issues/comments/207979751","html_url":"https://github.com/jamesqo/Be.IO/pull/1#issuecomment-207979751","issue_url":"https://api.github.com/repos/jamesqo/Be.IO/issues/1","id":207979751,"user":{"login":"UlyssesWu","id":4312781,"avatar_url":"https://avatars.githubusercontent.com/u/4312781?v=3","gravatar_id":"","url":"https://api.github.com/users/UlyssesWu","html_url":"https://github.com/UlyssesWu","followers_url":"https://api.github.com/users/UlyssesWu/followers","following_url":"https://api.github.com/users/UlyssesWu/following{/other_user}","gists_url":"https://api.github.com/users/UlyssesWu/gists{/gist_id}","starred_url":"https://api.github.com/users/UlyssesWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UlyssesWu/subscriptions","organizations_url":"https://api.github.com/users/UlyssesWu/orgs","repos_url":"https://api.github.com/users/UlyssesWu/repos","events_url":"https://api.github.com/users/UlyssesWu/events{/privacy}","received_events_url":"https://api.github.com/users/UlyssesWu/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T12:45:52Z","updated_at":"2016-04-10T12:45:52Z","body":"Oh, and I think maybe you should fix the Readme.md :\r\n\r\n    writer.WriteInt16(0x1357);\r\n    writer.WriteInt32(0xDEADBEEF);\r\n    writer.WriteInt64(long.MinValue); //tricky, since it's always right when test \r\n\r\nThere are no methods like these, after all :joy: "}}