From 9f8a167db23c1e32daee4730ea431edf65918efc Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 22 Oct 2024 18:22:27 +0200 Subject: [PATCH] Oops --- license.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/license.js b/license.js index 6935d6f..c667e48 100644 --- a/license.js +++ b/license.js @@ -365,6 +365,13 @@ export class Session { return forge.random.getBytesSync(16) } + _intToUint8Array(num) { + const buffer = new ArrayBuffer(4); + const view = new DataView(buffer); + view.setUint32(0, num, false); + return new Uint8Array(buffer); + } + getPSSH() { const dataLength = this._pssh.length; const totalLength = dataLength + 32;