W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > January 2016

Re: [web-bluetooth] Returns DataView instead of ArrayBuffer on readValue

From: Giovanni Ortuno via GitHub <sysbot+gh@w3.org>
Date: Fri, 22 Jan 2016 17:48:36 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-173990621-1453484915-sysbot+gh@w3.org>
How would returning a DataView make conversion more difficult? 
Converting from an ArrayBuffer to DataView is fairly easy:
var buffer = new ArrayBuffer(2);
var dataView = new DataView(buffer);
Similarly from DataView to ArrayBuffer:
var buffer = dataView.buffer;

What am I missing?

GitHub Notification of comment by g-ortuno
Please view or discuss this issue at 
 using your GitHub account
Received on Friday, 22 January 2016 17:48:38 UTC

This archive was generated by hypermail 2.3.1 : Friday, 22 January 2016 17:48:38 UTC