tests/contents/utils/patchSegmentWithTimeOffset.js
/**
 * Translate Integer to a Uint8Array of length 4 of the corresponding big-endian
 * bytes.
 * @param {Number} num
 * @returns {Uint8Array}
 */
Translate Integer to a Uint8Array of length 4 of the corresponding big-endian
bytes.
@param {Number} num
@returns {Uint8Array}
Translate Integer to a Uint8Array of length 4 of the corresponding big - endian bytes . @param { Number } num @returns { Uint8Array }
function itobe4(num) {
  return new Uint8Array([
    (num >>> 24) & 0xFF,
    (num >>> 16) & 0xFF,
    (num >>>  8) & 0xFF,
    (num)        & 0xFF,
  ]);
}
function itobe4 ( num ) { return new Uint8Array ( [ ( num >>> 24 ) & 0xFF , ( num >>> 16 ) & 0xFF , ( num >>> 8 ) & 0xFF , ( num ) & 0xFF , ] ) ; }
Translate Integer to a Uint8Array of length 4 of the corresponding big-endian
 bytes.
Translate Integer to a Uint8Array of length 4 of the corresponding big - endian bytes .