W3C home > Mailing lists > Public > public-webcrypto@w3.org > September 2012

Re: JS code examples for ACTION 43

From: Wan-Teh Chang <wtc@google.com>
Date: Thu, 6 Sep 2012 10:12:15 -0700
Message-ID: <CALTJjxFABP1hA3BJi+XbyXK0e5jGchnP0wukY9Qvde5m-Sc_0w@mail.gmail.com>
To: Arun Ranganathan <arun@mozilla.com>
Cc: Ryan Sleevi <sleevi@google.com>, David Dahl <ddahl@mozilla.com>, "public-webcrypto@w3.org Working Group" <public-webcrypto@w3.org>
On Thu, Sep 6, 2012 at 7:38 AM, Arun Ranganathan <arun@mozilla.com> wrote:
>
> 1. The general unwieldiness of ArrayBufferViews.  I shouldn't have used a Uint16Array,
> so no cookie for me.  But this raises an interesting point: should we just use an
> ArrayBuffer, or should we use an ArrayBufferView?  Using an ArrayBufferView obliges
> users to go through one additional step: figuring out what the data format *is*.  UTF-16?
> UTF-8?

Did you mean UTF-16 & UTF-8, or Uint16 and Uint8? I don't see "UTF"
mentioned on this Mozilla page:
https://developer.mozilla.org/en-US/docs/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses

Wan-Teh
Received on Thursday, 6 September 2012 17:12:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 6 September 2012 17:12:51 GMT