{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/3296","labels_url":"https://api.github.com/repos/nodejs/node/issues/3296/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/3296/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/3296/events","html_url":"https://github.com/nodejs/node/issues/3296","id":110712914,"number":3296,"title":"How can I access a Buffer's underlying Uint8Array or the ArrayBuffer, either using JavaScript or C++?","user":{"login":"metabench","id":1186693,"avatar_url":"https://avatars.githubusercontent.com/u/1186693?v=3","gravatar_id":"","url":"https://api.github.com/users/metabench","html_url":"https://github.com/metabench","followers_url":"https://api.github.com/users/metabench/followers","following_url":"https://api.github.com/users/metabench/following{/other_user}","gists_url":"https://api.github.com/users/metabench/gists{/gist_id}","starred_url":"https://api.github.com/users/metabench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabench/subscriptions","organizations_url":"https://api.github.com/users/metabench/orgs","repos_url":"https://api.github.com/users/metabench/repos","events_url":"https://api.github.com/users/metabench/events{/privacy}","received_events_url":"https://api.github.com/users/metabench/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/buffer","name":"buffer","color":"f7c6c7"},{"url":"https://api.github.com/repos/nodejs/node/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-09T18:26:50Z","updated_at":"2015-10-09T19:12:30Z","closed_at":null,"body":"I have noted that Buffer is now built on top of Uint8Array, and have decided to make more extensive use of Uint8Array throughout my code rather than using Buffers (also to standardise compatibility with C++).\r\n\r\nWhat I would like to do is modify some existing code that makes use of buffers, and get low-level access to the Uint8Array that holds the data. Is that possible purely using JavaScript, without doing any resource intensive operations like copying the buffer to a new array? How could it be done using C++?"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/146964215","html_url":"https://github.com/nodejs/node/issues/3296#issuecomment-146964215","issue_url":"https://api.github.com/repos/nodejs/node/issues/3296","id":146964215,"user":{"login":"ChALkeR","id":291301,"avatar_url":"https://avatars.githubusercontent.com/u/291301?v=3","gravatar_id":"","url":"https://api.github.com/users/ChALkeR","html_url":"https://github.com/ChALkeR","followers_url":"https://api.github.com/users/ChALkeR/followers","following_url":"https://api.github.com/users/ChALkeR/following{/other_user}","gists_url":"https://api.github.com/users/ChALkeR/gists{/gist_id}","starred_url":"https://api.github.com/users/ChALkeR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChALkeR/subscriptions","organizations_url":"https://api.github.com/users/ChALkeR/orgs","repos_url":"https://api.github.com/users/ChALkeR/repos","events_url":"https://api.github.com/users/ChALkeR/events{/privacy}","received_events_url":"https://api.github.com/users/ChALkeR/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T19:12:30Z","updated_at":"2015-10-09T19:12:30Z","body":"@metabench Is this solved?"}}