{"action":"closed","issue":{"url":"https://api.github.com/repos/charto/nbind/issues/28","repository_url":"https://api.github.com/repos/charto/nbind","labels_url":"https://api.github.com/repos/charto/nbind/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/charto/nbind/issues/28/comments","events_url":"https://api.github.com/repos/charto/nbind/issues/28/events","html_url":"https://github.com/charto/nbind/issues/28","id":171124666,"number":28,"title":"Transferring a buffer","user":{"login":"TanninOne","id":8525754,"avatar_url":"https://avatars.githubusercontent.com/u/8525754?v=3","gravatar_id":"","url":"https://api.github.com/users/TanninOne","html_url":"https://github.com/TanninOne","followers_url":"https://api.github.com/users/TanninOne/followers","following_url":"https://api.github.com/users/TanninOne/following{/other_user}","gists_url":"https://api.github.com/users/TanninOne/gists{/gist_id}","starred_url":"https://api.github.com/users/TanninOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanninOne/subscriptions","organizations_url":"https://api.github.com/users/TanninOne/orgs","repos_url":"https://api.github.com/users/TanninOne/repos","events_url":"https://api.github.com/users/TanninOne/events{/privacy}","received_events_url":"https://api.github.com/users/TanninOne/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-15T07:57:16Z","updated_at":"2016-08-23T07:38:42Z","closed_at":"2016-08-23T07:38:42Z","body":"I have the following requirement: On the c++ side I create a buffer with a 32-bit rgba image data (not encoded).\r\nOn the js side I want to feed this data into a Uint8ClampedArray to be used in a canvas element.\r\ncurrently I return the buffer from c++ as a std::vector<uint8_t>. On the javascript side I get a number[] which I then have to convert to the correct type.\r\nThese conversions are quite expensive so I was wondering if there was a way to fill a the Uint8ClampedArray  directly on the c++ side? Or is this something that will be possible in the future?\r\n\r\nThis issue isn't really time critical for me, just want to know if I need to take a different approach."}}
{"actor":{"display_login":"jjrv"}}