[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] String support in DataView

After much (justifiable!) procrastination, I've started putting a draft spec together for this functionality, with input from Ken Russell and some other willing reviewers. I've just posted it to:


The biggest outstanding issue raised (so far) is the behavior when encoding to a buffer that isn't large enough for the string.

Feedback appreciated, although we will probably redirect the discussion to a more appropriate list.

On Fri, Nov 4, 2011 at 8:08 AM, John Tamplin <[email protected]> wrote:

Has there been any discussion on this since

Right now, to extract UTF8 text from a ArrayBuffer, you have to do the
decoding in JS, which is slow and error prone.

>From the linked discussion, there was a suggestion that arbitrary
character sets would be required.  However, that could require a lot
of effort on the implementors and be hard to agree on what character
sets should be supported -- I would suggest just supporting
UTF8/UTF16LE/UTF16BE initially as they require no tables to implement,
and maybe if there is interest/demonstrated need more could be added

John A. Tamplin
Software Engineer (GWT), Google

You are currently subscribed to [email protected].
To unsubscribe, send an email to [email protected] with
the following command in the body of your email:
unsubscribe public_webgl