[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Typed Arrays & Strings
On Tue, Jun 29, 2010 at 4:35 PM, <firstname.lastname@example.org>
I like the Typed Array proposal -- it seems like one of the more sane
ability to decode a chunk of UTF8 data. Is there a reason that is not
part of the spec?
The CommonJS crew (http://commonjs.org/
I recently needed similar functionality for binary data parsing, so I ended up with an ES3 "best effort" impl. of TypedArrays and also a Binary type with various encodings although to avoid dependencies, my Binary type was actually based on an "octet array" so it's not terribly efficient). I intentionally mirrored the CommonJS API ideas, since they're reasonable. Code is MIT licensed and at http://hg.secondlife.com/llsd/src/tip/js/llsd.js
if you want to dig around.