[whatwg] Offline Web Apps

On 9/21/07, Maciej Stachowiak <mjs at apple.com> wrote:

> DOMString getAsBinary() isn't actually self-explanatory to me. How do
> you encode binary data as a UTF-16 string? I can think of at least two
> vaguely obvious ways (each code point is a byte, or each code point is
> a 16-bit chunk of the data). Both seem awkward to work with. I think
> it would be more effective to use a dedicated type for binary data.
> This is already likely to happen for XHR 2 binary data access, with
> something based on the ES4-proposed ByteArray class. What do you guys
> think of that?

We implemented this as a byte per code point.  A ByteArray version
would make sense.

-dave

Received on Friday, 21 September 2007 16:35:11 UTC