{"action":"opened","number":76,"pull_request":{"url":"https://api.github.com/repos/vis2k/Mirror/pulls/76","id":223308942,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMzA4OTQy","html_url":"https://github.com/vis2k/Mirror/pull/76","diff_url":"https://github.com/vis2k/Mirror/pull/76.diff","patch_url":"https://github.com/vis2k/Mirror/pull/76.patch","issue_url":"https://api.github.com/repos/vis2k/Mirror/issues/76","number":76,"state":"open","locked":false,"title":"Avoid array allocations in NetworkWriter.ToArray()","user":{"login":"apkd","id":13803120,"node_id":"MDQ6VXNlcjEzODAzMTIw","avatar_url":"https://avatars2.githubusercontent.com/u/13803120?v=4","gravatar_id":"","url":"https://api.github.com/users/apkd","html_url":"https://github.com/apkd","followers_url":"https://api.github.com/users/apkd/followers","following_url":"https://api.github.com/users/apkd/following{/other_user}","gists_url":"https://api.github.com/users/apkd/gists{/gist_id}","starred_url":"https://api.github.com/users/apkd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apkd/subscriptions","organizations_url":"https://api.github.com/users/apkd/orgs","repos_url":"https://api.github.com/users/apkd/repos","events_url":"https://api.github.com/users/apkd/events{/privacy}","received_events_url":"https://api.github.com/users/apkd/received_events","type":"User","site_admin":false},"body":"We can use MemoryStream.GetBuffer() to obtain the underlaying array.\r\nThis is safe because we're returning a copy of the array anyway.\r\n\r\nSee: https://source.dot.net/#System.Private.CoreLib/shared/System/IO/MemoryStream.cs,5df5fc757781f05e,references","created_at":"2018-10-16T16:05:47Z","updated_at":"2018-10-16T16:05:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vis2k/Mirror/pulls/76/commits","review_comments_url":"https://api.github.com/repos/vis2k/Mirror/pulls/76/comments","review_comment_url":"https://api.github.com/repos/vis2k/Mirror/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vis2k/Mirror/issues/76/comments","statuses_url":"https://api.github.com/repos/vis2k/Mirror/statuses/e36c26c09362ffcc62ebbea91fed4a534c4b2d44","head":{"label":"apkd:networkwriter-optimization","ref":"networkwriter-optimization","sha":"e36c26c09362ffcc62ebbea91fed4a534c4b2d44","user":{"login":"apkd","id":13803120,"node_id":"MDQ6VXNlcjEzODAzMTIw","avatar_url":"https://avatars2.githubusercontent.com/u/13803120?v=4","gravatar_id":"","url":"https://api.github.com/users/apkd","html_url":"https://github.com/apkd","followers_url":"https://api.github.com/users/apkd/followers","following_url":"https://api.github.com/users/apkd/following{/other_user}","gists_url":"https://api.github.com/users/apkd/gists{/gist_id}","starred_url":"https://api.github.com/users/apkd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apkd/subscriptions","organizations_url":"https://api.github.com/users/apkd/orgs","repos_url":"https://api.github.com/users/apkd/repos","events_url":"https://api.github.com/users/apkd/events{/privacy}","received_events_url":"https://api.github.com/users/apkd/received_events","type":"User","site_admin":false},"repo":{"id":151618107,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE2MTgxMDc=","name":"Mirror","full_name":"apkd/Mirror","private":false,"owner":{"login":"apkd","id":13803120,"node_id":"MDQ6VXNlcjEzODAzMTIw","avatar_url":"https://avatars2.githubusercontent.com/u/13803120?v=4","gravatar_id":"","url":"https://api.github.com/users/apkd","html_url":"https://github.com/apkd","followers_url":"https://api.github.com/users/apkd/followers","following_url":"https://api.github.com/users/apkd/following{/other_user}","gists_url":"https://api.github.com/users/apkd/gists{/gist_id}","starred_url":"https://api.github.com/users/apkd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apkd/subscriptions","organizations_url":"https://api.github.com/users/apkd/orgs","repos_url":"https://api.github.com/users/apkd/repos","events_url":"https://api.github.com/users/apkd/events{/privacy}","received_events_url":"https://api.github.com/users/apkd/received_events","type":"User","site_admin":false},"html_url":"https://github.com/apkd/Mirror","description":"A community replacement for Unity's abandoned UNET Networking System.","fork":true,"url":"https://api.github.com/repos/apkd/Mirror","forks_url":"https://api.github.com/repos/apkd/Mirror/forks","keys_url":"https://api.github.com/repos/apkd/Mirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apkd/Mirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apkd/Mirror/teams","hooks_url":"https://api.github.com/repos/apkd/Mirror/hooks","issue_events_url":"https://api.github.com/repos/apkd/Mirror/issues/events{/number}","events_url":"https://api.github.com/repos/apkd/Mirror/events","assignees_url":"https://api.github.com/repos/apkd/Mirror/assignees{/user}","branches_url":"https://api.github.com/repos/apkd/Mirror/branches{/branch}","tags_url":"https://api.github.com/repos/apkd/Mirror/tags","blobs_url":"https://api.github.com/repos/apkd/Mirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apkd/Mirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apkd/Mirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/apkd/Mirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apkd/Mirror/statuses/{sha}","languages_url":"https://api.github.com/repos/apkd/Mirror/languages","stargazers_url":"https://api.github.com/repos/apkd/Mirror/stargazers","contributors_url":"https://api.github.com/repos/apkd/Mirror/contributors","subscribers_url":"https://api.github.com/repos/apkd/Mirror/subscribers","subscription_url":"https://api.github.com/repos/apkd/Mirror/subscription","commits_url":"https://api.github.com/repos/apkd/Mirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/apkd/Mirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/apkd/Mirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/apkd/Mirror/issues/comments{/number}","contents_url":"https://api.github.com/repos/apkd/Mirror/contents/{+path}","compare_url":"https://api.github.com/repos/apkd/Mirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apkd/Mirror/merges","archive_url":"https://api.github.com/repos/apkd/Mirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apkd/Mirror/downloads","issues_url":"https://api.github.com/repos/apkd/Mirror/issues{/number}","pulls_url":"https://api.github.com/repos/apkd/Mirror/pulls{/number}","milestones_url":"https://api.github.com/repos/apkd/Mirror/milestones{/number}","notifications_url":"https://api.github.com/repos/apkd/Mirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apkd/Mirror/labels{/name}","releases_url":"https://api.github.com/repos/apkd/Mirror/releases{/id}","deployments_url":"https://api.github.com/repos/apkd/Mirror/deployments","created_at":"2018-10-04T18:29:55Z","updated_at":"2018-10-16T15:45:05Z","pushed_at":"2018-10-16T16:04:57Z","git_url":"git://github.com/apkd/Mirror.git","ssh_url":"git@github.com:apkd/Mirror.git","clone_url":"https://github.com/apkd/Mirror.git","svn_url":"https://github.com/apkd/Mirror","homepage":"https://forum.unity.com/threads/unet-hlapi-community-edition.425437/","size":9274,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"mirror"}},"base":{"label":"vis2k:mirror","ref":"mirror","sha":"37445979daecc3857b7b98c1786880da65e25407","user":{"login":"vis2k","id":16416509,"node_id":"MDQ6VXNlcjE2NDE2NTA5","avatar_url":"https://avatars0.githubusercontent.com/u/16416509?v=4","gravatar_id":"","url":"https://api.github.com/users/vis2k","html_url":"https://github.com/vis2k","followers_url":"https://api.github.com/users/vis2k/followers","following_url":"https://api.github.com/users/vis2k/following{/other_user}","gists_url":"https://api.github.com/users/vis2k/gists{/gist_id}","starred_url":"https://api.github.com/users/vis2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vis2k/subscriptions","organizations_url":"https://api.github.com/users/vis2k/orgs","repos_url":"https://api.github.com/users/vis2k/repos","events_url":"https://api.github.com/users/vis2k/events{/privacy}","received_events_url":"https://api.github.com/users/vis2k/received_events","type":"User","site_admin":false},"repo":{"id":141745943,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE3NDU5NDM=","name":"Mirror","full_name":"vis2k/Mirror","private":false,"owner":{"login":"vis2k","id":16416509,"node_id":"MDQ6VXNlcjE2NDE2NTA5","avatar_url":"https://avatars0.githubusercontent.com/u/16416509?v=4","gravatar_id":"","url":"https://api.github.com/users/vis2k","html_url":"https://github.com/vis2k","followers_url":"https://api.github.com/users/vis2k/followers","following_url":"https://api.github.com/users/vis2k/following{/other_user}","gists_url":"https://api.github.com/users/vis2k/gists{/gist_id}","starred_url":"https://api.github.com/users/vis2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vis2k/subscriptions","organizations_url":"https://api.github.com/users/vis2k/orgs","repos_url":"https://api.github.com/users/vis2k/repos","events_url":"https://api.github.com/users/vis2k/events{/privacy}","received_events_url":"https://api.github.com/users/vis2k/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vis2k/Mirror","description":"A community replacement for Unity's abandoned UNET Networking System.","fork":false,"url":"https://api.github.com/repos/vis2k/Mirror","forks_url":"https://api.github.com/repos/vis2k/Mirror/forks","keys_url":"https://api.github.com/repos/vis2k/Mirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vis2k/Mirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vis2k/Mirror/teams","hooks_url":"https://api.github.com/repos/vis2k/Mirror/hooks","issue_events_url":"https://api.github.com/repos/vis2k/Mirror/issues/events{/number}","events_url":"https://api.github.com/repos/vis2k/Mirror/events","assignees_url":"https://api.github.com/repos/vis2k/Mirror/assignees{/user}","branches_url":"https://api.github.com/repos/vis2k/Mirror/branches{/branch}","tags_url":"https://api.github.com/repos/vis2k/Mirror/tags","blobs_url":"https://api.github.com/repos/vis2k/Mirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vis2k/Mirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vis2k/Mirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/vis2k/Mirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vis2k/Mirror/statuses/{sha}","languages_url":"https://api.github.com/repos/vis2k/Mirror/languages","stargazers_url":"https://api.github.com/repos/vis2k/Mirror/stargazers","contributors_url":"https://api.github.com/repos/vis2k/Mirror/contributors","subscribers_url":"https://api.github.com/repos/vis2k/Mirror/subscribers","subscription_url":"https://api.github.com/repos/vis2k/Mirror/subscription","commits_url":"https://api.github.com/repos/vis2k/Mirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/vis2k/Mirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/vis2k/Mirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/vis2k/Mirror/issues/comments{/number}","contents_url":"https://api.github.com/repos/vis2k/Mirror/contents/{+path}","compare_url":"https://api.github.com/repos/vis2k/Mirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vis2k/Mirror/merges","archive_url":"https://api.github.com/repos/vis2k/Mirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vis2k/Mirror/downloads","issues_url":"https://api.github.com/repos/vis2k/Mirror/issues{/number}","pulls_url":"https://api.github.com/repos/vis2k/Mirror/pulls{/number}","milestones_url":"https://api.github.com/repos/vis2k/Mirror/milestones{/number}","notifications_url":"https://api.github.com/repos/vis2k/Mirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vis2k/Mirror/labels{/name}","releases_url":"https://api.github.com/repos/vis2k/Mirror/releases{/id}","deployments_url":"https://api.github.com/repos/vis2k/Mirror/deployments","created_at":"2018-07-20T18:37:41Z","updated_at":"2018-10-16T13:30:49Z","pushed_at":"2018-10-16T13:33:04Z","git_url":"git://github.com/vis2k/Mirror.git","ssh_url":"git@github.com:vis2k/Mirror.git","clone_url":"https://github.com/vis2k/Mirror.git","svn_url":"https://github.com/vis2k/Mirror","homepage":"https://forum.unity.com/threads/unet-hlapi-community-edition.425437/","size":9222,"stargazers_count":119,"watchers_count":119,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":25,"open_issues":13,"watchers":119,"default_branch":"mirror"}},"_links":{"self":{"href":"https://api.github.com/repos/vis2k/Mirror/pulls/76"},"html":{"href":"https://github.com/vis2k/Mirror/pull/76"},"issue":{"href":"https://api.github.com/repos/vis2k/Mirror/issues/76"},"comments":{"href":"https://api.github.com/repos/vis2k/Mirror/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/vis2k/Mirror/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/vis2k/Mirror/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vis2k/Mirror/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/vis2k/Mirror/statuses/e36c26c09362ffcc62ebbea91fed4a534c4b2d44"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":4,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"apkd"}}