Add utility functions for working with binary data in JavaScript.

Review Request #9460 — Created Dec. 26, 2017 and submitted

chipx86
Review Board
release-3.0.x
b67d120...
reviewboard

JavaScript makes use of Blob and ArrayBuffer types for working with
binary data. These are fairly simple APIs that allow for reading and
writing binary blobs and typed arrays.

This change builds upon these APIs to more easily convert blobs to
strings and ArrayBuffers, and to more easily build these types based on
arrays of data. They'll be used in upcoming changes to parse binary
payloads from the server and to build payloads for testing.

Unit tests pass on Safari, Firefox, Chrome, IE10, IE11, and Edge.

Used this in an upcoming change, verifying these functions all worked
in practice.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (afbaf0b)
Loading...