Add utility functions for working with binary data in JavaScript.

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

Christian Hammond
Review Board

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 Trowbridge
  1. Ship It!
Christian Hammond
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (afbaf0b)