{"action":"created","issue":{"url":"https://api.github.com/repos/davidfowl/Channels/issues/92","repository_url":"https://api.github.com/repos/davidfowl/Channels","labels_url":"https://api.github.com/repos/davidfowl/Channels/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/davidfowl/Channels/issues/92/comments","events_url":"https://api.github.com/repos/davidfowl/Channels/issues/92/events","html_url":"https://github.com/davidfowl/Channels/issues/92","id":178198718,"number":92,"title":"Would be useful to have a \"Bytes Written\" on the WritableBuffer","user":{"login":"Drawaes","id":16406969,"avatar_url":"https://avatars.githubusercontent.com/u/16406969?v=3","gravatar_id":"","url":"https://api.github.com/users/Drawaes","html_url":"https://github.com/Drawaes","followers_url":"https://api.github.com/users/Drawaes/followers","following_url":"https://api.github.com/users/Drawaes/following{/other_user}","gists_url":"https://api.github.com/users/Drawaes/gists{/gist_id}","starred_url":"https://api.github.com/users/Drawaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drawaes/subscriptions","organizations_url":"https://api.github.com/users/Drawaes/orgs","repos_url":"https://api.github.com/users/Drawaes/repos","events_url":"https://api.github.com/users/Drawaes/events{/privacy}","received_events_url":"https://api.github.com/users/Drawaes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-20T22:38:12Z","updated_at":"2016-09-20T23:14:01Z","closed_at":null,"body":"This would mean if you are writing a \"content\" length header you could do\r\n\r\nvar headerCursor = buffer.Memory;\r\nbuffer.Write(0);\r\nmessage.Write(buffer)\r\nheaderCursor.Write<uint>( buffer.BytesWritten);\r\nbuffer.FlushAsync();\r\n\r\nOtherwise you need to track all the writes all the way down the stack to figure out the length or do\r\nAsReadableBuffer().Len\r\n"},"comment":{"url":"https://api.github.com/repos/davidfowl/Channels/issues/comments/248464012","html_url":"https://github.com/davidfowl/Channels/issues/92#issuecomment-248464012","issue_url":"https://api.github.com/repos/davidfowl/Channels/issues/92","id":248464012,"user":{"login":"mgravell","id":17328,"avatar_url":"https://avatars.githubusercontent.com/u/17328?v=3","gravatar_id":"","url":"https://api.github.com/users/mgravell","html_url":"https://github.com/mgravell","followers_url":"https://api.github.com/users/mgravell/followers","following_url":"https://api.github.com/users/mgravell/following{/other_user}","gists_url":"https://api.github.com/users/mgravell/gists{/gist_id}","starred_url":"https://api.github.com/users/mgravell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgravell/subscriptions","organizations_url":"https://api.github.com/users/mgravell/orgs","repos_url":"https://api.github.com/users/mgravell/repos","events_url":"https://api.github.com/users/mgravell/events{/privacy}","received_events_url":"https://api.github.com/users/mgravell/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T23:14:01Z","updated_at":"2016-09-20T23:14:01Z","body":"well, you could always write them... the trick is that in **both** cases you want to start with the earlier one (so the second operator in `-`), and look at each segment in turn walking forward via `.Next`"}}
{"actor":{"display_login":"mgravell"}}