0

The ByteArray class provides methods and properties to optimize reading, writing, and working with binary data.

How to use byte arrays tutorial.

I'm looking for a very similar API as the one linked.

I'm looking for a class the browser provides not hack or workaround. The linked question does not provide the answer.

1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
  • Hi Matt Ball. This not a duplicate. Please reopen. My question asks for an actual class and API. – 1.21 gigawatts Dec 30 '15 at 01:59
  • 1
    Have a look http://www.javascripture.com/Uint8Array to see how JS typed arrays are used. There are not standard functions like AS3's read/writeObject or compress/uncompress but there are js frameworks that provide typed array wrappers for similar features... – SushiHangover Dec 30 '15 at 02:24
  • @SushiHangover that's exactly the info i was looking for. thank you! i posted an edited version of this question over here, http://stackoverflow.com/questions/34521944/does-javascript-support-a-bytearray-class-in-the-browser/34521997?noredirect=1#34521997. i'm going to delete this one since it was closed due to drive by moderation. – 1.21 gigawatts Dec 30 '15 at 02:29
  • Was sent this link, https://gist.github.com/sunetos/275610#file-bytearray-js. It has the read methods but not the write methods. So close, yet so far. Maybe you could vote for it as well? – 1.21 gigawatts Jan 01 '16 at 00:15
  • 1
    Ah.. that is from http://www.adamia.com/blog/high-performance-javascript-port-of-actionscript-byteArray FYI: James Ward wrote a AMF.js library using ideas from that... If you are looking for read/write objects from js typed byte arrays, you should look at the AMF javascript ports. There are a few floating around, just search for `AMF javascript` – SushiHangover Jan 01 '16 at 00:56

0 Answers0