{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/winforms/pulls/comments/240007499","pull_request_review_id":182947032,"id":240007499,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDAwNzQ5OQ==","diff_hunk":"@@ -1034,10 +1051,11 @@ private int SaveStreamToHandle(ref IntPtr handle, Stream stream)\n             }\n             try\n             {\n-                byte[] bytes = new byte[size];\n-                stream.Position = 0;\n-                stream.Read(bytes, 0, size);\n-                Marshal.Copy(bytes, 0, ptr, size);\n+                unsafe","path":"src/System.Windows.Forms/src/System/Windows/Forms/DataObject.cs","position":38,"original_position":38,"commit_id":"60a1c8dda8c94659b59c67fa46803cf4e56af2ad","original_commit_id":"60a1c8dda8c94659b59c67fa46803cf4e56af2ad","user":{"login":"raffaeler","id":5183152,"node_id":"MDQ6VXNlcjUxODMxNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/5183152?v=4","gravatar_id":"","url":"https://api.github.com/users/raffaeler","html_url":"https://github.com/raffaeler","followers_url":"https://api.github.com/users/raffaeler/followers","following_url":"https://api.github.com/users/raffaeler/following{/other_user}","gists_url":"https://api.github.com/users/raffaeler/gists{/gist_id}","starred_url":"https://api.github.com/users/raffaeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffaeler/subscriptions","organizations_url":"https://api.github.com/users/raffaeler/orgs","repos_url":"https://api.github.com/users/raffaeler/repos","events_url":"https://api.github.com/users/raffaeler/events{/privacy}","received_events_url":"https://api.github.com/users/raffaeler/received_events","type":"User","site_admin":false},"body":"@JeremyKuhne Agree but maybe it's better to move this kind of changes to a separate PR. I just limited my changes to adopt `Span<>` and friends wherever it makes sense.","created_at":"2018-12-08T15:14:30Z","updated_at":"2018-12-08T15:14:30Z","html_url":"https://github.com/dotnet/winforms/pull/148#discussion_r240007499","pull_request_url":"https://api.github.com/repos/dotnet/winforms/pulls/148","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dotnet/winforms/pulls/comments/240007499"},"html":{"href":"https://github.com/dotnet/winforms/pull/148#discussion_r240007499"},"pull_request":{"href":"https://api.github.com/repos/dotnet/winforms/pulls/148"}},"in_reply_to_id":239918083},"pull_request":{"url":"https://api.github.com/repos/dotnet/winforms/pulls/148","id":235951145,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1OTUxMTQ1","html_url":"https://github.com/dotnet/winforms/pull/148","diff_url":"https://github.com/dotnet/winforms/pull/148.diff","patch_url":"https://github.com/dotnet/winforms/pull/148.patch","issue_url":"https://api.github.com/repos/dotnet/winforms/issues/148","number":148,"state":"open","locked":false,"title":"Enhance code to use Span<byte>","user":{"login":"raffaeler","id":5183152,"node_id":"MDQ6VXNlcjUxODMxNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/5183152?v=4","gravatar_id":"","url":"https://api.github.com/users/raffaeler","html_url":"https://github.com/raffaeler","followers_url":"https://api.github.com/users/raffaeler/followers","following_url":"https://api.github.com/users/raffaeler/following{/other_user}","gists_url":"https://api.github.com/users/raffaeler/gists{/gist_id}","starred_url":"https://api.github.com/users/raffaeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffaeler/subscriptions","organizations_url":"https://api.github.com/users/raffaeler/orgs","repos_url":"https://api.github.com/users/raffaeler/repos","events_url":"https://api.github.com/users/raffaeler/events{/privacy}","received_events_url":"https://api.github.com/users/raffaeler/received_events","type":"User","site_admin":false},"body":"Reopening [by request](https://github.com/dotnet/winforms/pull/114). It has been closed accidentally and could not been reopened.\r\n\r\nThis pull request includes a couple of overloads taking Span in addition to byte[], and a couple of optimizations to avoid copying memory (thanks to Span).","created_at":"2018-12-04T20:37:24Z","updated_at":"2018-12-08T15:14:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93e4eaf5111dd83d4388d1cd1289c908970fa552","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/winforms/pulls/148/commits","review_comments_url":"https://api.github.com/repos/dotnet/winforms/pulls/148/comments","review_comment_url":"https://api.github.com/repos/dotnet/winforms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/winforms/issues/148/comments","statuses_url":"https://api.github.com/repos/dotnet/winforms/statuses/60a1c8dda8c94659b59c67fa46803cf4e56af2ad","head":{"label":"raffaeler:master","ref":"master","sha":"60a1c8dda8c94659b59c67fa46803cf4e56af2ad","user":{"login":"raffaeler","id":5183152,"node_id":"MDQ6VXNlcjUxODMxNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/5183152?v=4","gravatar_id":"","url":"https://api.github.com/users/raffaeler","html_url":"https://github.com/raffaeler","followers_url":"https://api.github.com/users/raffaeler/followers","following_url":"https://api.github.com/users/raffaeler/following{/other_user}","gists_url":"https://api.github.com/users/raffaeler/gists{/gist_id}","starred_url":"https://api.github.com/users/raffaeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffaeler/subscriptions","organizations_url":"https://api.github.com/users/raffaeler/orgs","repos_url":"https://api.github.com/users/raffaeler/repos","events_url":"https://api.github.com/users/raffaeler/events{/privacy}","received_events_url":"https://api.github.com/users/raffaeler/received_events","type":"User","site_admin":false},"repo":{"id":160413775,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA0MTM3NzU=","name":"winforms","full_name":"raffaeler/winforms","private":false,"owner":{"login":"raffaeler","id":5183152,"node_id":"MDQ6VXNlcjUxODMxNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/5183152?v=4","gravatar_id":"","url":"https://api.github.com/users/raffaeler","html_url":"https://github.com/raffaeler","followers_url":"https://api.github.com/users/raffaeler/followers","following_url":"https://api.github.com/users/raffaeler/following{/other_user}","gists_url":"https://api.github.com/users/raffaeler/gists{/gist_id}","starred_url":"https://api.github.com/users/raffaeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffaeler/subscriptions","organizations_url":"https://api.github.com/users/raffaeler/orgs","repos_url":"https://api.github.com/users/raffaeler/repos","events_url":"https://api.github.com/users/raffaeler/events{/privacy}","received_events_url":"https://api.github.com/users/raffaeler/received_events","type":"User","site_admin":false},"html_url":"https://github.com/raffaeler/winforms","description":"This repo contains Windows Forms for .NET Core.","fork":true,"url":"https://api.github.com/repos/raffaeler/winforms","forks_url":"https://api.github.com/repos/raffaeler/winforms/forks","keys_url":"https://api.github.com/repos/raffaeler/winforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raffaeler/winforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raffaeler/winforms/teams","hooks_url":"https://api.github.com/repos/raffaeler/winforms/hooks","issue_events_url":"https://api.github.com/repos/raffaeler/winforms/issues/events{/number}","events_url":"https://api.github.com/repos/raffaeler/winforms/events","assignees_url":"https://api.github.com/repos/raffaeler/winforms/assignees{/user}","branches_url":"https://api.github.com/repos/raffaeler/winforms/branches{/branch}","tags_url":"https://api.github.com/repos/raffaeler/winforms/tags","blobs_url":"https://api.github.com/repos/raffaeler/winforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raffaeler/winforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raffaeler/winforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/raffaeler/winforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raffaeler/winforms/statuses/{sha}","languages_url":"https://api.github.com/repos/raffaeler/winforms/languages","stargazers_url":"https://api.github.com/repos/raffaeler/winforms/stargazers","contributors_url":"https://api.github.com/repos/raffaeler/winforms/contributors","subscribers_url":"https://api.github.com/repos/raffaeler/winforms/subscribers","subscription_url":"https://api.github.com/repos/raffaeler/winforms/subscription","commits_url":"https://api.github.com/repos/raffaeler/winforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/raffaeler/winforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/raffaeler/winforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/raffaeler/winforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/raffaeler/winforms/contents/{+path}","compare_url":"https://api.github.com/repos/raffaeler/winforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raffaeler/winforms/merges","archive_url":"https://api.github.com/repos/raffaeler/winforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raffaeler/winforms/downloads","issues_url":"https://api.github.com/repos/raffaeler/winforms/issues{/number}","pulls_url":"https://api.github.com/repos/raffaeler/winforms/pulls{/number}","milestones_url":"https://api.github.com/repos/raffaeler/winforms/milestones{/number}","notifications_url":"https://api.github.com/repos/raffaeler/winforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raffaeler/winforms/labels{/name}","releases_url":"https://api.github.com/repos/raffaeler/winforms/releases{/id}","deployments_url":"https://api.github.com/repos/raffaeler/winforms/deployments","created_at":"2018-12-04T20:18:06Z","updated_at":"2018-12-05T20:25:30Z","pushed_at":"2018-12-05T20:33:48Z","git_url":"git://github.com/raffaeler/winforms.git","ssh_url":"git@github.com:raffaeler/winforms.git","clone_url":"https://github.com/raffaeler/winforms.git","svn_url":"https://github.com/raffaeler/winforms","homepage":"","size":5769,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"a534dd2ebff6792c31642348b41b491397ecdfaa","user":{"login":"dotnet","id":9141961,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNDE5NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":153711830,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM3MTE4MzA=","name":"winforms","full_name":"dotnet/winforms","private":false,"owner":{"login":"dotnet","id":9141961,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNDE5NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dotnet/winforms","description":"Windows Forms is a .NET Core UI framework for building Windows desktop applications.","fork":false,"url":"https://api.github.com/repos/dotnet/winforms","forks_url":"https://api.github.com/repos/dotnet/winforms/forks","keys_url":"https://api.github.com/repos/dotnet/winforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/winforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/winforms/teams","hooks_url":"https://api.github.com/repos/dotnet/winforms/hooks","issue_events_url":"https://api.github.com/repos/dotnet/winforms/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/winforms/events","assignees_url":"https://api.github.com/repos/dotnet/winforms/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/winforms/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/winforms/tags","blobs_url":"https://api.github.com/repos/dotnet/winforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/winforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/winforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/winforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/winforms/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/winforms/languages","stargazers_url":"https://api.github.com/repos/dotnet/winforms/stargazers","contributors_url":"https://api.github.com/repos/dotnet/winforms/contributors","subscribers_url":"https://api.github.com/repos/dotnet/winforms/subscribers","subscription_url":"https://api.github.com/repos/dotnet/winforms/subscription","commits_url":"https://api.github.com/repos/dotnet/winforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/winforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/winforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/winforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/winforms/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/winforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/winforms/merges","archive_url":"https://api.github.com/repos/dotnet/winforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/winforms/downloads","issues_url":"https://api.github.com/repos/dotnet/winforms/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/winforms/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/winforms/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/winforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/winforms/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/winforms/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/winforms/deployments","created_at":"2018-10-19T01:54:02Z","updated_at":"2018-12-08T15:13:33Z","pushed_at":"2018-12-08T14:07:20Z","git_url":"git://github.com/dotnet/winforms.git","ssh_url":"git@github.com:dotnet/winforms.git","clone_url":"https://github.com/dotnet/winforms.git","svn_url":"https://github.com/dotnet/winforms","homepage":"","size":6579,"stargazers_count":1274,"watchers_count":1274,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":85,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":85,"open_issues":43,"watchers":1274,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/winforms/pulls/148"},"html":{"href":"https://github.com/dotnet/winforms/pull/148"},"issue":{"href":"https://api.github.com/repos/dotnet/winforms/issues/148"},"comments":{"href":"https://api.github.com/repos/dotnet/winforms/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/winforms/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/winforms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/winforms/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/winforms/statuses/60a1c8dda8c94659b59c67fa46803cf4e56af2ad"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"raffaeler"}}