[Bug 23369] Provide hooks for Typed Arrays

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23369

--- Comment #4 from Anne <annevk@annevk.nl> ---
So I think we should go with APIs accepting /TypedArray/ Objects, ArrayBuffer
Objects, and DataView Objects, in terms of ES6. If we introduce these as IDL
types as suggested in comment 1, I suppose we could produce a typedef as
follows:

typedef (Int8Array or Uint8Array or Uint8ClampedArray or Int16Array or
Uint16Array or Int32Array or Uint32Array or Float32Array or Float64Array or
ArrayBuffer or DataView) ByteSequence;

It's still not entirely clear to me what the best return value is.
XMLHttpRequest uses ArrayBuffer. TextEncoder uses Uint8Array.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Thursday, 26 September 2013 17:52:21 UTC