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

https://heycam.github.io/webidl/#idl-buffer-source-types says "When 
designing APIs that create and return a buffer, it is recommended to 
use the ArrayBuffer type rather than Uint8Array." However, I agree 
that the DataView is more convenient for most uses of Characteristic 
values, since they tend to be heterogenous. 

@heycam, is that bit of WebIDL intended to discourage returning 
DataViews too? Is this something we should bring up on 
public-script-coord or just change here? Thanks.

-- 
GitHub Notif of comment by jyasskin
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/172#issuecomment-147525767

Received on Monday, 12 October 2015 21:20:18 UTC