[webkit-dev] ArrayBuffer supprot
jianli at chromium.org
Tue Oct 12 14:37:18 PDT 2010
On Tue, Oct 12, 2010 at 2:17 PM, Kenneth Russell <kbr at google.com> wrote:
> On Fri, Oct 8, 2010 at 2:46 PM, Jian Li <jianli at chromium.org> wrote:
> > Hi,
> > I am looking into hooking up ArrayBuffer support in FileReader and
> > BlobBuilder. It seems that most of the typed array types (ArrayBuffer,
> > ArrayBufferView, Uint8Array, and etc) have already been implemented in
> > WebKit, except TypedArray.get() and DataView.
> Since most of the other questions have been answered:
> https://bugs.webkit.org/show_bug.cgi?id=46541 covers implementation of
> DataView. I will try to take care of this in the next week or two. Let
> me know if you need it before I've gotten to it.
I do not need it in implementing ArrayBuffer support in FileReader and
BlobBuilder. Currently I just instantiate a subinstance of ArrayBufferView
to get the data for testing purpose. But it would be better if we can have
DataView implemented in order to provide a way for the user to
read heterogeneous data.
> > Currently all these typed array supports are put under 3D_CANVAS feature
> > guard. Since they're going to be widely used in other areas, like File
> > and XHR, should we remove the conditional guard 3D_CANVAS from all the
> > related files? Should we also move these files out of html\canvas, say
> > html\ or html\typearrays?
> > In addition, get() is not implemented for typed array views. Should we
> > it?
> Both the setter and getter in the Web IDL are defined as omittable,
> which means that in the ECMAScript binding the indexing operator ""
> is used for both getting and setting values. Both are fully
> implemented in JSC and V8. At the C++ level, the "item" and "set"
> methods (see IntegralTypedArrayBase and Float32Array for example) are
> used in certain cases to implement the getter and setter.
I noticed that and already used it in my test scripts. Thanks for pointing
> > Jian
> > _______________________________________________
> > webkit-dev mailing list
> > webkit-dev at lists.webkit.org
> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev