{"action":"created","comment":{"url":"https://api.github.com/repos/google/flatbuffers/pulls/comments/25436845","id":25436845,"diff_hunk":"@@ -463,6 +494,10 @@ class FlatBufferBuilder FLATBUFFERS_FINAL_CLASS {\n   // Get the serialized buffer (after you call Finish()).\n   uint8_t *GetBufferPointer() const { return buf_.data(); }\n \n+  // Get the released pointer to the serialized buffer.\n+  // Don't attempt to use this FlatBufferBuilder afterwards!\n+  unique_ptr_t Release() { return buf_.release(); }","path":"include/flatbuffers/flatbuffers.h","position":75,"original_position":75,"commit_id":"8156a212304ce75592b9c3185c629ae5eddec29c","original_commit_id":"8156a212304ce75592b9c3185c629ae5eddec29c","user":{"login":"gregoire-astruc","id":494291,"avatar_url":"https://avatars.githubusercontent.com/u/494291?v=3","gravatar_id":"","url":"https://api.github.com/users/gregoire-astruc","html_url":"https://github.com/gregoire-astruc","followers_url":"https://api.github.com/users/gregoire-astruc/followers","following_url":"https://api.github.com/users/gregoire-astruc/following{/other_user}","gists_url":"https://api.github.com/users/gregoire-astruc/gists{/gist_id}","starred_url":"https://api.github.com/users/gregoire-astruc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregoire-astruc/subscriptions","organizations_url":"https://api.github.com/users/gregoire-astruc/orgs","repos_url":"https://api.github.com/users/gregoire-astruc/repos","events_url":"https://api.github.com/users/gregoire-astruc/events{/privacy}","received_events_url":"https://api.github.com/users/gregoire-astruc/received_events","type":"User","site_admin":false},"body":"`Release()` or `ReleaseBufferPointer()`? The latter is consistent with the `Get` version.","created_at":"2015-02-26T15:48:43Z","updated_at":"2015-02-26T15:48:43Z","html_url":"https://github.com/google/flatbuffers/pull/146#discussion_r25436845","pull_request_url":"https://api.github.com/repos/google/flatbuffers/pulls/146","_links":{"self":{"href":"https://api.github.com/repos/google/flatbuffers/pulls/comments/25436845"},"html":{"href":"https://github.com/google/flatbuffers/pull/146#discussion_r25436845"},"pull_request":{"href":"https://api.github.com/repos/google/flatbuffers/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/google/flatbuffers/pulls/146","id":30064464,"html_url":"https://github.com/google/flatbuffers/pull/146","diff_url":"https://github.com/google/flatbuffers/pull/146.diff","patch_url":"https://github.com/google/flatbuffers/pull/146.patch","issue_url":"https://api.github.com/repos/google/flatbuffers/issues/146","number":146,"state":"open","locked":false,"title":"Release mechanism.","user":{"login":"gregoire-astruc","id":494291,"avatar_url":"https://avatars.githubusercontent.com/u/494291?v=3","gravatar_id":"","url":"https://api.github.com/users/gregoire-astruc","html_url":"https://github.com/gregoire-astruc","followers_url":"https://api.github.com/users/gregoire-astruc/followers","following_url":"https://api.github.com/users/gregoire-astruc/following{/other_user}","gists_url":"https://api.github.com/users/gregoire-astruc/gists{/gist_id}","starred_url":"https://api.github.com/users/gregoire-astruc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregoire-astruc/subscriptions","organizations_url":"https://api.github.com/users/gregoire-astruc/orgs","repos_url":"https://api.github.com/users/gregoire-astruc/repos","events_url":"https://api.github.com/users/gregoire-astruc/events{/privacy}","received_events_url":"https://api.github.com/users/gregoire-astruc/received_events","type":"User","site_admin":false},"body":"See #145 for initial details.","created_at":"2015-02-26T10:08:51Z","updated_at":"2015-02-26T15:48:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65dfc86f7601b94681c2d628d9b6520585137ae9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/flatbuffers/pulls/146/commits","review_comments_url":"https://api.github.com/repos/google/flatbuffers/pulls/146/comments","review_comment_url":"https://api.github.com/repos/google/flatbuffers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/flatbuffers/issues/146/comments","statuses_url":"https://api.github.com/repos/google/flatbuffers/statuses/8156a212304ce75592b9c3185c629ae5eddec29c","head":{"label":"KeronTeam:issue-#145","ref":"issue-#145","sha":"8156a212304ce75592b9c3185c629ae5eddec29c","user":{"login":"KeronTeam","id":11018488,"avatar_url":"https://avatars.githubusercontent.com/u/11018488?v=3","gravatar_id":"","url":"https://api.github.com/users/KeronTeam","html_url":"https://github.com/KeronTeam","followers_url":"https://api.github.com/users/KeronTeam/followers","following_url":"https://api.github.com/users/KeronTeam/following{/other_user}","gists_url":"https://api.github.com/users/KeronTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/KeronTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeronTeam/subscriptions","organizations_url":"https://api.github.com/users/KeronTeam/orgs","repos_url":"https://api.github.com/users/KeronTeam/repos","events_url":"https://api.github.com/users/KeronTeam/events{/privacy}","received_events_url":"https://api.github.com/users/KeronTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":31257191,"name":"flatbuffers","full_name":"KeronTeam/flatbuffers","owner":{"login":"KeronTeam","id":11018488,"avatar_url":"https://avatars.githubusercontent.com/u/11018488?v=3","gravatar_id":"","url":"https://api.github.com/users/KeronTeam","html_url":"https://github.com/KeronTeam","followers_url":"https://api.github.com/users/KeronTeam/followers","following_url":"https://api.github.com/users/KeronTeam/following{/other_user}","gists_url":"https://api.github.com/users/KeronTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/KeronTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeronTeam/subscriptions","organizations_url":"https://api.github.com/users/KeronTeam/orgs","repos_url":"https://api.github.com/users/KeronTeam/repos","events_url":"https://api.github.com/users/KeronTeam/events{/privacy}","received_events_url":"https://api.github.com/users/KeronTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KeronTeam/flatbuffers","description":"Memory Efficient Serialization Library","fork":true,"url":"https://api.github.com/repos/KeronTeam/flatbuffers","forks_url":"https://api.github.com/repos/KeronTeam/flatbuffers/forks","keys_url":"https://api.github.com/repos/KeronTeam/flatbuffers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KeronTeam/flatbuffers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KeronTeam/flatbuffers/teams","hooks_url":"https://api.github.com/repos/KeronTeam/flatbuffers/hooks","issue_events_url":"https://api.github.com/repos/KeronTeam/flatbuffers/issues/events{/number}","events_url":"https://api.github.com/repos/KeronTeam/flatbuffers/events","assignees_url":"https://api.github.com/repos/KeronTeam/flatbuffers/assignees{/user}","branches_url":"https://api.github.com/repos/KeronTeam/flatbuffers/branches{/branch}","tags_url":"https://api.github.com/repos/KeronTeam/flatbuffers/tags","blobs_url":"https://api.github.com/repos/KeronTeam/flatbuffers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KeronTeam/flatbuffers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KeronTeam/flatbuffers/git/refs{/sha}","trees_url":"https://api.github.com/repos/KeronTeam/flatbuffers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KeronTeam/flatbuffers/statuses/{sha}","languages_url":"https://api.github.com/repos/KeronTeam/flatbuffers/languages","stargazers_url":"https://api.github.com/repos/KeronTeam/flatbuffers/stargazers","contributors_url":"https://api.github.com/repos/KeronTeam/flatbuffers/contributors","subscribers_url":"https://api.github.com/repos/KeronTeam/flatbuffers/subscribers","subscription_url":"https://api.github.com/repos/KeronTeam/flatbuffers/subscription","commits_url":"https://api.github.com/repos/KeronTeam/flatbuffers/commits{/sha}","git_commits_url":"https://api.github.com/repos/KeronTeam/flatbuffers/git/commits{/sha}","comments_url":"https://api.github.com/repos/KeronTeam/flatbuffers/comments{/number}","issue_comment_url":"https://api.github.com/repos/KeronTeam/flatbuffers/issues/comments{/number}","contents_url":"https://api.github.com/repos/KeronTeam/flatbuffers/contents/{+path}","compare_url":"https://api.github.com/repos/KeronTeam/flatbuffers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KeronTeam/flatbuffers/merges","archive_url":"https://api.github.com/repos/KeronTeam/flatbuffers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KeronTeam/flatbuffers/downloads","issues_url":"https://api.github.com/repos/KeronTeam/flatbuffers/issues{/number}","pulls_url":"https://api.github.com/repos/KeronTeam/flatbuffers/pulls{/number}","milestones_url":"https://api.github.com/repos/KeronTeam/flatbuffers/milestones{/number}","notifications_url":"https://api.github.com/repos/KeronTeam/flatbuffers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KeronTeam/flatbuffers/labels{/name}","releases_url":"https://api.github.com/repos/KeronTeam/flatbuffers/releases{/id}","created_at":"2015-02-24T11:30:43Z","updated_at":"2015-02-24T11:30:44Z","pushed_at":"2015-02-26T10:07:42Z","git_url":"git://github.com/KeronTeam/flatbuffers.git","ssh_url":"git@github.com:KeronTeam/flatbuffers.git","clone_url":"https://github.com/KeronTeam/flatbuffers.git","svn_url":"https://github.com/KeronTeam/flatbuffers","homepage":"http://google.github.io/flatbuffers/","size":2589,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"71e97b712306980f95a86e6770b0dd18c9915593","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":19953044,"name":"flatbuffers","full_name":"google/flatbuffers","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/flatbuffers","description":"Memory Efficient Serialization Library","fork":false,"url":"https://api.github.com/repos/google/flatbuffers","forks_url":"https://api.github.com/repos/google/flatbuffers/forks","keys_url":"https://api.github.com/repos/google/flatbuffers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/flatbuffers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/flatbuffers/teams","hooks_url":"https://api.github.com/repos/google/flatbuffers/hooks","issue_events_url":"https://api.github.com/repos/google/flatbuffers/issues/events{/number}","events_url":"https://api.github.com/repos/google/flatbuffers/events","assignees_url":"https://api.github.com/repos/google/flatbuffers/assignees{/user}","branches_url":"https://api.github.com/repos/google/flatbuffers/branches{/branch}","tags_url":"https://api.github.com/repos/google/flatbuffers/tags","blobs_url":"https://api.github.com/repos/google/flatbuffers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/flatbuffers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/flatbuffers/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/flatbuffers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/flatbuffers/statuses/{sha}","languages_url":"https://api.github.com/repos/google/flatbuffers/languages","stargazers_url":"https://api.github.com/repos/google/flatbuffers/stargazers","contributors_url":"https://api.github.com/repos/google/flatbuffers/contributors","subscribers_url":"https://api.github.com/repos/google/flatbuffers/subscribers","subscription_url":"https://api.github.com/repos/google/flatbuffers/subscription","commits_url":"https://api.github.com/repos/google/flatbuffers/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/flatbuffers/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/flatbuffers/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/flatbuffers/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/flatbuffers/contents/{+path}","compare_url":"https://api.github.com/repos/google/flatbuffers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/flatbuffers/merges","archive_url":"https://api.github.com/repos/google/flatbuffers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/flatbuffers/downloads","issues_url":"https://api.github.com/repos/google/flatbuffers/issues{/number}","pulls_url":"https://api.github.com/repos/google/flatbuffers/pulls{/number}","milestones_url":"https://api.github.com/repos/google/flatbuffers/milestones{/number}","notifications_url":"https://api.github.com/repos/google/flatbuffers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/flatbuffers/labels{/name}","releases_url":"https://api.github.com/repos/google/flatbuffers/releases{/id}","created_at":"2014-05-19T18:33:01Z","updated_at":"2015-02-26T08:53:21Z","pushed_at":"2015-02-24T00:37:43Z","git_url":"git://github.com/google/flatbuffers.git","ssh_url":"git@github.com:google/flatbuffers.git","clone_url":"https://github.com/google/flatbuffers.git","svn_url":"https://github.com/google/flatbuffers","homepage":"http://google.github.io/flatbuffers/","size":2589,"stargazers_count":2351,"watchers_count":2351,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":266,"mirror_url":null,"open_issues_count":26,"forks":266,"open_issues":26,"watchers":2351,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/flatbuffers/pulls/146"},"html":{"href":"https://github.com/google/flatbuffers/pull/146"},"issue":{"href":"https://api.github.com/repos/google/flatbuffers/issues/146"},"comments":{"href":"https://api.github.com/repos/google/flatbuffers/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/google/flatbuffers/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/google/flatbuffers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/flatbuffers/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/google/flatbuffers/statuses/8156a212304ce75592b9c3185c629ae5eddec29c"}}}}