function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  return result;
}
Creates a clone of `arrayBuffer`.

@private
@param {ArrayBuffer} arrayBuffer The array buffer to clone.
@returns {ArrayBuffer} Returns the cloned array buffer.