{"action":"created","comment":{"url":"https://api.github.com/repos/nodejs/node/pulls/comments/51228179","id":51228179,"diff_hunk":"@@ -600,6 +600,46 @@ buf.includes('this', 4);\n   // returns false\n ```\n \n+### buf.lastIndexOf(value[, byteOffset][, encoding])\n+\n+* `value` String, Buffer or Number\n+* `byteOffset` {Number} Default: `buf.length`\n+* `encoding` {String} Default: `'utf8'`\n+* Return: {Number}\n+\n+Identical to [`Buffer#indexOf()`][], but searches the Buffer from back to front\n+instead of front to back. Returns the starting index position of `value` in\n+Buffer or `-1` if the Buffer does not contain `value`. The `value` can be a\n+String, Buffer or Number. Strings are by default interpreted as UTF8. If","path":"doc/api/buffer.markdown","position":14,"original_position":14,"commit_id":"47437f0a5c421459bf17663c77206c7654f8c185","original_commit_id":"47437f0a5c421459bf17663c77206c7654f8c185","user":{"login":"TimothyGu","id":1538624,"avatar_url":"https://avatars.githubusercontent.com/u/1538624?v=3","gravatar_id":"","url":"https://api.github.com/users/TimothyGu","html_url":"https://github.com/TimothyGu","followers_url":"https://api.github.com/users/TimothyGu/followers","following_url":"https://api.github.com/users/TimothyGu/following{/other_user}","gists_url":"https://api.github.com/users/TimothyGu/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyGu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyGu/subscriptions","organizations_url":"https://api.github.com/users/TimothyGu/orgs","repos_url":"https://api.github.com/users/TimothyGu/repos","events_url":"https://api.github.com/users/TimothyGu/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyGu/received_events","type":"User","site_admin":false},"body":"UTF**-**8","created_at":"2016-01-29T05:51:22Z","updated_at":"2016-01-29T05:51:22Z","html_url":"https://github.com/nodejs/node/pull/4933#discussion_r51228179","pull_request_url":"https://api.github.com/repos/nodejs/node/pulls/4933","_links":{"self":{"href":"https://api.github.com/repos/nodejs/node/pulls/comments/51228179"},"html":{"href":"https://github.com/nodejs/node/pull/4933#discussion_r51228179"},"pull_request":{"href":"https://api.github.com/repos/nodejs/node/pulls/4933"}}},"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/4933","id":57566721,"html_url":"https://github.com/nodejs/node/pull/4933","diff_url":"https://github.com/nodejs/node/pull/4933.diff","patch_url":"https://github.com/nodejs/node/pull/4933.patch","issue_url":"https://api.github.com/repos/nodejs/node/issues/4933","number":4933,"state":"open","locked":false,"title":"Add docs for Buffer.lastIndexOf","user":{"login":"dcposch","id":169280,"avatar_url":"https://avatars.githubusercontent.com/u/169280?v=3","gravatar_id":"","url":"https://api.github.com/users/dcposch","html_url":"https://github.com/dcposch","followers_url":"https://api.github.com/users/dcposch/followers","following_url":"https://api.github.com/users/dcposch/following{/other_user}","gists_url":"https://api.github.com/users/dcposch/gists{/gist_id}","starred_url":"https://api.github.com/users/dcposch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcposch/subscriptions","organizations_url":"https://api.github.com/users/dcposch/orgs","repos_url":"https://api.github.com/users/dcposch/repos","events_url":"https://api.github.com/users/dcposch/events{/privacy}","received_events_url":"https://api.github.com/users/dcposch/received_events","type":"User","site_admin":false},"body":"Complements #4604 \r\n\r\nTogether they fix #4846\r\n","created_at":"2016-01-28T21:13:38Z","updated_at":"2016-01-29T05:51:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77da230a9c84d0ea33bec44ea29a14fb11ee81cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nodejs/node/pulls/4933/commits","review_comments_url":"https://api.github.com/repos/nodejs/node/pulls/4933/comments","review_comment_url":"https://api.github.com/repos/nodejs/node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodejs/node/issues/4933/comments","statuses_url":"https://api.github.com/repos/nodejs/node/statuses/47437f0a5c421459bf17663c77206c7654f8c185","head":{"label":"dcposch:doc","ref":"doc","sha":"47437f0a5c421459bf17663c77206c7654f8c185","user":{"login":"dcposch","id":169280,"avatar_url":"https://avatars.githubusercontent.com/u/169280?v=3","gravatar_id":"","url":"https://api.github.com/users/dcposch","html_url":"https://github.com/dcposch","followers_url":"https://api.github.com/users/dcposch/followers","following_url":"https://api.github.com/users/dcposch/following{/other_user}","gists_url":"https://api.github.com/users/dcposch/gists{/gist_id}","starred_url":"https://api.github.com/users/dcposch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcposch/subscriptions","organizations_url":"https://api.github.com/users/dcposch/orgs","repos_url":"https://api.github.com/users/dcposch/repos","events_url":"https://api.github.com/users/dcposch/events{/privacy}","received_events_url":"https://api.github.com/users/dcposch/received_events","type":"User","site_admin":false},"repo":{"id":50025992,"name":"node","full_name":"dcposch/node","owner":{"login":"dcposch","id":169280,"avatar_url":"https://avatars.githubusercontent.com/u/169280?v=3","gravatar_id":"","url":"https://api.github.com/users/dcposch","html_url":"https://github.com/dcposch","followers_url":"https://api.github.com/users/dcposch/followers","following_url":"https://api.github.com/users/dcposch/following{/other_user}","gists_url":"https://api.github.com/users/dcposch/gists{/gist_id}","starred_url":"https://api.github.com/users/dcposch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcposch/subscriptions","organizations_url":"https://api.github.com/users/dcposch/orgs","repos_url":"https://api.github.com/users/dcposch/repos","events_url":"https://api.github.com/users/dcposch/events{/privacy}","received_events_url":"https://api.github.com/users/dcposch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dcposch/node","description":"Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:","fork":true,"url":"https://api.github.com/repos/dcposch/node","forks_url":"https://api.github.com/repos/dcposch/node/forks","keys_url":"https://api.github.com/repos/dcposch/node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcposch/node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcposch/node/teams","hooks_url":"https://api.github.com/repos/dcposch/node/hooks","issue_events_url":"https://api.github.com/repos/dcposch/node/issues/events{/number}","events_url":"https://api.github.com/repos/dcposch/node/events","assignees_url":"https://api.github.com/repos/dcposch/node/assignees{/user}","branches_url":"https://api.github.com/repos/dcposch/node/branches{/branch}","tags_url":"https://api.github.com/repos/dcposch/node/tags","blobs_url":"https://api.github.com/repos/dcposch/node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcposch/node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcposch/node/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcposch/node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcposch/node/statuses/{sha}","languages_url":"https://api.github.com/repos/dcposch/node/languages","stargazers_url":"https://api.github.com/repos/dcposch/node/stargazers","contributors_url":"https://api.github.com/repos/dcposch/node/contributors","subscribers_url":"https://api.github.com/repos/dcposch/node/subscribers","subscription_url":"https://api.github.com/repos/dcposch/node/subscription","commits_url":"https://api.github.com/repos/dcposch/node/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcposch/node/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcposch/node/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcposch/node/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcposch/node/contents/{+path}","compare_url":"https://api.github.com/repos/dcposch/node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcposch/node/merges","archive_url":"https://api.github.com/repos/dcposch/node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcposch/node/downloads","issues_url":"https://api.github.com/repos/dcposch/node/issues{/number}","pulls_url":"https://api.github.com/repos/dcposch/node/pulls{/number}","milestones_url":"https://api.github.com/repos/dcposch/node/milestones{/number}","notifications_url":"https://api.github.com/repos/dcposch/node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcposch/node/labels{/name}","releases_url":"https://api.github.com/repos/dcposch/node/releases{/id}","deployments_url":"https://api.github.com/repos/dcposch/node/deployments","created_at":"2016-01-20T11:35:10Z","updated_at":"2016-01-20T11:35:19Z","pushed_at":"2016-01-29T00:43:51Z","git_url":"git://github.com/dcposch/node.git","ssh_url":"git@github.com:dcposch/node.git","clone_url":"https://github.com/dcposch/node.git","svn_url":"https://github.com/dcposch/node","homepage":"https://nodejs.org","size":172630,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nodejs:master","ref":"master","sha":"795eeb1ccfbbd405e039041441b04bfef3d981e2","user":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"repo":{"id":27193779,"name":"node","full_name":"nodejs/node","owner":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodejs/node","description":"Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:","fork":false,"url":"https://api.github.com/repos/nodejs/node","forks_url":"https://api.github.com/repos/nodejs/node/forks","keys_url":"https://api.github.com/repos/nodejs/node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodejs/node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodejs/node/teams","hooks_url":"https://api.github.com/repos/nodejs/node/hooks","issue_events_url":"https://api.github.com/repos/nodejs/node/issues/events{/number}","events_url":"https://api.github.com/repos/nodejs/node/events","assignees_url":"https://api.github.com/repos/nodejs/node/assignees{/user}","branches_url":"https://api.github.com/repos/nodejs/node/branches{/branch}","tags_url":"https://api.github.com/repos/nodejs/node/tags","blobs_url":"https://api.github.com/repos/nodejs/node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodejs/node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodejs/node/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodejs/node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodejs/node/statuses/{sha}","languages_url":"https://api.github.com/repos/nodejs/node/languages","stargazers_url":"https://api.github.com/repos/nodejs/node/stargazers","contributors_url":"https://api.github.com/repos/nodejs/node/contributors","subscribers_url":"https://api.github.com/repos/nodejs/node/subscribers","subscription_url":"https://api.github.com/repos/nodejs/node/subscription","commits_url":"https://api.github.com/repos/nodejs/node/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodejs/node/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodejs/node/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodejs/node/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodejs/node/contents/{+path}","compare_url":"https://api.github.com/repos/nodejs/node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodejs/node/merges","archive_url":"https://api.github.com/repos/nodejs/node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodejs/node/downloads","issues_url":"https://api.github.com/repos/nodejs/node/issues{/number}","pulls_url":"https://api.github.com/repos/nodejs/node/pulls{/number}","milestones_url":"https://api.github.com/repos/nodejs/node/milestones{/number}","notifications_url":"https://api.github.com/repos/nodejs/node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodejs/node/labels{/name}","releases_url":"https://api.github.com/repos/nodejs/node/releases{/id}","deployments_url":"https://api.github.com/repos/nodejs/node/deployments","created_at":"2014-11-26T19:57:11Z","updated_at":"2016-01-29T05:32:11Z","pushed_at":"2016-01-29T05:51:09Z","git_url":"git://github.com/nodejs/node.git","ssh_url":"git@github.com:nodejs/node.git","clone_url":"https://github.com/nodejs/node.git","svn_url":"https://github.com/nodejs/node","homepage":"https://nodejs.org","size":203416,"stargazers_count":19749,"watchers_count":19749,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2410,"mirror_url":null,"open_issues_count":697,"forks":2410,"open_issues":697,"watchers":19749,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodejs/node/pulls/4933"},"html":{"href":"https://github.com/nodejs/node/pull/4933"},"issue":{"href":"https://api.github.com/repos/nodejs/node/issues/4933"},"comments":{"href":"https://api.github.com/repos/nodejs/node/issues/4933/comments"},"review_comments":{"href":"https://api.github.com/repos/nodejs/node/pulls/4933/comments"},"review_comment":{"href":"https://api.github.com/repos/nodejs/node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodejs/node/pulls/4933/commits"},"statuses":{"href":"https://api.github.com/repos/nodejs/node/statuses/47437f0a5c421459bf17663c77206c7654f8c185"}}}}