W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2013

Re: [whatwg] BinaryEncoding for Typed Arrays using window.btoa and window.atob

From: Kornel Lesiński <kornel@geekhood.net>
Date: Tue, 06 Aug 2013 13:28:45 +0100
To: whatwg@lists.whatwg.org
Message-ID: <op.w1d997h4te2ec8@aimac>
On Mon, 05 Aug 2013 21:39:22 +0100, Chang Shu <cshu01@gmail.com> wrote:

> I see your point now, Simon. Technically both approaches should work.
> As you said, yours has the limitation that the implementation does not
> know which view to return unless you provide an enum type of parameter
> instead of boolean to atob.

In that case it'd be better to return ArrayBuffer, so the user can wrap it
in any type they want (including DataView).

regards, Kornel
Received on Tuesday, 6 August 2013 12:29:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC