{"action":"created","comment":{"url":"https://api.github.com/repos/hyunsik/tokamak/pulls/comments/55163185","id":55163185,"diff_hunk":"@@ -51,13 +51,26 @@ pub struct Chunk {\n   pub size: usize, // pub owned: false\n }\n \n-\n impl fmt::Display for Chunk {\n   fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {\n     write!(f, \"Chunk {{ptr:{}, size:{}}}\", self.ptr as usize, self.size)\n   }\n }\n \n+#[repr(C)]\n+#[derive(Copy, Clone)]\n+pub struct Run {\n+  pub length: *const u8,\n+  pub value: *const u8,","path":"src/common/page.rs","position":15,"original_position":15,"commit_id":"ebe81f6ff21df4d82c45a45177b23c8c730c4fc5","original_commit_id":"ebe81f6ff21df4d82c45a45177b23c8c730c4fc5","user":{"login":"hyunsik","id":225941,"avatar_url":"https://avatars.githubusercontent.com/u/225941?v=3","gravatar_id":"","url":"https://api.github.com/users/hyunsik","html_url":"https://github.com/hyunsik","followers_url":"https://api.github.com/users/hyunsik/followers","following_url":"https://api.github.com/users/hyunsik/following{/other_user}","gists_url":"https://api.github.com/users/hyunsik/gists{/gist_id}","starred_url":"https://api.github.com/users/hyunsik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyunsik/subscriptions","organizations_url":"https://api.github.com/users/hyunsik/orgs","repos_url":"https://api.github.com/users/hyunsik/repos","events_url":"https://api.github.com/users/hyunsik/events{/privacy}","received_events_url":"https://api.github.com/users/hyunsik/received_events","type":"User","site_admin":false},"body":"I thought this code is cpp. That is I saw it as like ``*uint8_t``. I was blind. Because this code is in Rust, ``*const u8`` is right. ``*const u8`` in Rust is conventionally used like void in C or C++.","created_at":"2016-03-07T05:25:45Z","updated_at":"2016-03-07T05:25:45Z","html_url":"https://github.com/hyunsik/tokamak/pull/12#discussion_r55163185","pull_request_url":"https://api.github.com/repos/hyunsik/tokamak/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/hyunsik/tokamak/pulls/comments/55163185"},"html":{"href":"https://github.com/hyunsik/tokamak/pull/12#discussion_r55163185"},"pull_request":{"href":"https://api.github.com/repos/hyunsik/tokamak/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/hyunsik/tokamak/pulls/12","id":59292312,"html_url":"https://github.com/hyunsik/tokamak/pull/12","diff_url":"https://github.com/hyunsik/tokamak/pull/12.diff","patch_url":"https://github.com/hyunsik/tokamak/pull/12.patch","issue_url":"https://api.github.com/repos/hyunsik/tokamak/issues/12","number":12,"state":"open","locked":false,"title":"Supporting simple RLE for chunks","user":{"login":"jihoonson","id":2322288,"avatar_url":"https://avatars.githubusercontent.com/u/2322288?v=3","gravatar_id":"","url":"https://api.github.com/users/jihoonson","html_url":"https://github.com/jihoonson","followers_url":"https://api.github.com/users/jihoonson/followers","following_url":"https://api.github.com/users/jihoonson/following{/other_user}","gists_url":"https://api.github.com/users/jihoonson/gists{/gist_id}","starred_url":"https://api.github.com/users/jihoonson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jihoonson/subscriptions","organizations_url":"https://api.github.com/users/jihoonson/orgs","repos_url":"https://api.github.com/users/jihoonson/repos","events_url":"https://api.github.com/users/jihoonson/events{/privacy}","received_events_url":"https://api.github.com/users/jihoonson/received_events","type":"User","site_admin":false},"body":"See #11 for the detailed proposal.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.svg\" height=\"40\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/hyunsik/tokamak/12)\n<!-- Reviewable:end -->\n","created_at":"2016-02-14T10:31:20Z","updated_at":"2016-03-07T05:25:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e514094dd46fab322eaab786c2dc1ed03985321a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyunsik/tokamak/pulls/12/commits","review_comments_url":"https://api.github.com/repos/hyunsik/tokamak/pulls/12/comments","review_comment_url":"https://api.github.com/repos/hyunsik/tokamak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyunsik/tokamak/issues/12/comments","statuses_url":"https://api.github.com/repos/hyunsik/tokamak/statuses/ebe81f6ff21df4d82c45a45177b23c8c730c4fc5","head":{"label":"jihoonson:rle_page","ref":"rle_page","sha":"ebe81f6ff21df4d82c45a45177b23c8c730c4fc5","user":{"login":"jihoonson","id":2322288,"avatar_url":"https://avatars.githubusercontent.com/u/2322288?v=3","gravatar_id":"","url":"https://api.github.com/users/jihoonson","html_url":"https://github.com/jihoonson","followers_url":"https://api.github.com/users/jihoonson/followers","following_url":"https://api.github.com/users/jihoonson/following{/other_user}","gists_url":"https://api.github.com/users/jihoonson/gists{/gist_id}","starred_url":"https://api.github.com/users/jihoonson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jihoonson/subscriptions","organizations_url":"https://api.github.com/users/jihoonson/orgs","repos_url":"https://api.github.com/users/jihoonson/repos","events_url":"https://api.github.com/users/jihoonson/events{/privacy}","received_events_url":"https://api.github.com/users/jihoonson/received_events","type":"User","site_admin":false},"repo":{"id":47407579,"name":"tokamak","full_name":"jihoonson/tokamak","owner":{"login":"jihoonson","id":2322288,"avatar_url":"https://avatars.githubusercontent.com/u/2322288?v=3","gravatar_id":"","url":"https://api.github.com/users/jihoonson","html_url":"https://github.com/jihoonson","followers_url":"https://api.github.com/users/jihoonson/followers","following_url":"https://api.github.com/users/jihoonson/following{/other_user}","gists_url":"https://api.github.com/users/jihoonson/gists{/gist_id}","starred_url":"https://api.github.com/users/jihoonson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jihoonson/subscriptions","organizations_url":"https://api.github.com/users/jihoonson/orgs","repos_url":"https://api.github.com/users/jihoonson/repos","events_url":"https://api.github.com/users/jihoonson/events{/privacy}","received_events_url":"https://api.github.com/users/jihoonson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jihoonson/tokamak","description":"","fork":true,"url":"https://api.github.com/repos/jihoonson/tokamak","forks_url":"https://api.github.com/repos/jihoonson/tokamak/forks","keys_url":"https://api.github.com/repos/jihoonson/tokamak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jihoonson/tokamak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jihoonson/tokamak/teams","hooks_url":"https://api.github.com/repos/jihoonson/tokamak/hooks","issue_events_url":"https://api.github.com/repos/jihoonson/tokamak/issues/events{/number}","events_url":"https://api.github.com/repos/jihoonson/tokamak/events","assignees_url":"https://api.github.com/repos/jihoonson/tokamak/assignees{/user}","branches_url":"https://api.github.com/repos/jihoonson/tokamak/branches{/branch}","tags_url":"https://api.github.com/repos/jihoonson/tokamak/tags","blobs_url":"https://api.github.com/repos/jihoonson/tokamak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jihoonson/tokamak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jihoonson/tokamak/git/refs{/sha}","trees_url":"https://api.github.com/repos/jihoonson/tokamak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jihoonson/tokamak/statuses/{sha}","languages_url":"https://api.github.com/repos/jihoonson/tokamak/languages","stargazers_url":"https://api.github.com/repos/jihoonson/tokamak/stargazers","contributors_url":"https://api.github.com/repos/jihoonson/tokamak/contributors","subscribers_url":"https://api.github.com/repos/jihoonson/tokamak/subscribers","subscription_url":"https://api.github.com/repos/jihoonson/tokamak/subscription","commits_url":"https://api.github.com/repos/jihoonson/tokamak/commits{/sha}","git_commits_url":"https://api.github.com/repos/jihoonson/tokamak/git/commits{/sha}","comments_url":"https://api.github.com/repos/jihoonson/tokamak/comments{/number}","issue_comment_url":"https://api.github.com/repos/jihoonson/tokamak/issues/comments{/number}","contents_url":"https://api.github.com/repos/jihoonson/tokamak/contents/{+path}","compare_url":"https://api.github.com/repos/jihoonson/tokamak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jihoonson/tokamak/merges","archive_url":"https://api.github.com/repos/jihoonson/tokamak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jihoonson/tokamak/downloads","issues_url":"https://api.github.com/repos/jihoonson/tokamak/issues{/number}","pulls_url":"https://api.github.com/repos/jihoonson/tokamak/pulls{/number}","milestones_url":"https://api.github.com/repos/jihoonson/tokamak/milestones{/number}","notifications_url":"https://api.github.com/repos/jihoonson/tokamak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jihoonson/tokamak/labels{/name}","releases_url":"https://api.github.com/repos/jihoonson/tokamak/releases{/id}","deployments_url":"https://api.github.com/repos/jihoonson/tokamak/deployments","created_at":"2015-12-04T14:06:50Z","updated_at":"2015-12-04T14:06:51Z","pushed_at":"2016-03-01T13:22:53Z","git_url":"git://github.com/jihoonson/tokamak.git","ssh_url":"git@github.com:jihoonson/tokamak.git","clone_url":"https://github.com/jihoonson/tokamak.git","svn_url":"https://github.com/jihoonson/tokamak","homepage":null,"size":729,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hyunsik:master","ref":"master","sha":"95a298815e3cc0e17a37a9c4f3dddceea91f4a0b","user":{"login":"hyunsik","id":225941,"avatar_url":"https://avatars.githubusercontent.com/u/225941?v=3","gravatar_id":"","url":"https://api.github.com/users/hyunsik","html_url":"https://github.com/hyunsik","followers_url":"https://api.github.com/users/hyunsik/followers","following_url":"https://api.github.com/users/hyunsik/following{/other_user}","gists_url":"https://api.github.com/users/hyunsik/gists{/gist_id}","starred_url":"https://api.github.com/users/hyunsik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyunsik/subscriptions","organizations_url":"https://api.github.com/users/hyunsik/orgs","repos_url":"https://api.github.com/users/hyunsik/repos","events_url":"https://api.github.com/users/hyunsik/events{/privacy}","received_events_url":"https://api.github.com/users/hyunsik/received_events","type":"User","site_admin":false},"repo":{"id":47399011,"name":"tokamak","full_name":"hyunsik/tokamak","owner":{"login":"hyunsik","id":225941,"avatar_url":"https://avatars.githubusercontent.com/u/225941?v=3","gravatar_id":"","url":"https://api.github.com/users/hyunsik","html_url":"https://github.com/hyunsik","followers_url":"https://api.github.com/users/hyunsik/followers","following_url":"https://api.github.com/users/hyunsik/following{/other_user}","gists_url":"https://api.github.com/users/hyunsik/gists{/gist_id}","starred_url":"https://api.github.com/users/hyunsik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyunsik/subscriptions","organizations_url":"https://api.github.com/users/hyunsik/orgs","repos_url":"https://api.github.com/users/hyunsik/repos","events_url":"https://api.github.com/users/hyunsik/events{/privacy}","received_events_url":"https://api.github.com/users/hyunsik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hyunsik/tokamak","description":"","fork":false,"url":"https://api.github.com/repos/hyunsik/tokamak","forks_url":"https://api.github.com/repos/hyunsik/tokamak/forks","keys_url":"https://api.github.com/repos/hyunsik/tokamak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyunsik/tokamak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyunsik/tokamak/teams","hooks_url":"https://api.github.com/repos/hyunsik/tokamak/hooks","issue_events_url":"https://api.github.com/repos/hyunsik/tokamak/issues/events{/number}","events_url":"https://api.github.com/repos/hyunsik/tokamak/events","assignees_url":"https://api.github.com/repos/hyunsik/tokamak/assignees{/user}","branches_url":"https://api.github.com/repos/hyunsik/tokamak/branches{/branch}","tags_url":"https://api.github.com/repos/hyunsik/tokamak/tags","blobs_url":"https://api.github.com/repos/hyunsik/tokamak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyunsik/tokamak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyunsik/tokamak/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyunsik/tokamak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyunsik/tokamak/statuses/{sha}","languages_url":"https://api.github.com/repos/hyunsik/tokamak/languages","stargazers_url":"https://api.github.com/repos/hyunsik/tokamak/stargazers","contributors_url":"https://api.github.com/repos/hyunsik/tokamak/contributors","subscribers_url":"https://api.github.com/repos/hyunsik/tokamak/subscribers","subscription_url":"https://api.github.com/repos/hyunsik/tokamak/subscription","commits_url":"https://api.github.com/repos/hyunsik/tokamak/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyunsik/tokamak/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyunsik/tokamak/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyunsik/tokamak/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyunsik/tokamak/contents/{+path}","compare_url":"https://api.github.com/repos/hyunsik/tokamak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyunsik/tokamak/merges","archive_url":"https://api.github.com/repos/hyunsik/tokamak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyunsik/tokamak/downloads","issues_url":"https://api.github.com/repos/hyunsik/tokamak/issues{/number}","pulls_url":"https://api.github.com/repos/hyunsik/tokamak/pulls{/number}","milestones_url":"https://api.github.com/repos/hyunsik/tokamak/milestones{/number}","notifications_url":"https://api.github.com/repos/hyunsik/tokamak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyunsik/tokamak/labels{/name}","releases_url":"https://api.github.com/repos/hyunsik/tokamak/releases{/id}","deployments_url":"https://api.github.com/repos/hyunsik/tokamak/deployments","created_at":"2015-12-04T11:03:45Z","updated_at":"2016-01-11T09:03:06Z","pushed_at":"2016-03-01T13:22:54Z","git_url":"git://github.com/hyunsik/tokamak.git","ssh_url":"git@github.com:hyunsik/tokamak.git","clone_url":"https://github.com/hyunsik/tokamak.git","svn_url":"https://github.com/hyunsik/tokamak","homepage":null,"size":752,"stargazers_count":1,"watchers_count":1,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyunsik/tokamak/pulls/12"},"html":{"href":"https://github.com/hyunsik/tokamak/pull/12"},"issue":{"href":"https://api.github.com/repos/hyunsik/tokamak/issues/12"},"comments":{"href":"https://api.github.com/repos/hyunsik/tokamak/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/hyunsik/tokamak/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/hyunsik/tokamak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyunsik/tokamak/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/hyunsik/tokamak/statuses/ebe81f6ff21df4d82c45a45177b23c8c730c4fc5"}}}}