static parseMsProRecords_(view, byteOffset) {
    const records = [];

    while (byteOffset < view.byteLength - 1) {
      const type = view.getUint16(byteOffset, true);
      byteOffset += 2;

      const byteLength = view.getUint16(byteOffset, true);
      byteOffset += 2;

      if ((byteLength & 1) != 0 || byteLength + byteOffset > view.byteLength) {
        shaka.log.warning('Malformed MS PRO object');
        return [];
      }

      const recordValue = shaka.util.BufferUtils.toUint8(
          view, byteOffset, byteLength);
      records.push({
        type: type,
        value: recordValue,
      });

      byteOffset += byteLength;
    }

    return records;
  }
Parses an Array buffer starting at byteOffset for PlayReady Object Records.
Each PRO Record is preceded by its PlayReady Record type and length in
bytes.

PlayReady Object Record format: https://goo.gl/FTcu46

@param {!DataView} view
@param {number} byteOffset
@return {!Array<shaka.drm.PlayReady.PlayReadyRecord>}
@private