Allow all Matroska AttachedFiles to be read & written via metadata tags

This commit is contained in:
Vanilagy
2025-09-19 20:12:29 +02:00
parent e28c34cb7a
commit a3f4f7f4f7
8 changed files with 220 additions and 21 deletions
+14
View File
@@ -765,3 +765,17 @@ export const bytesToBase64 = (bytes: Uint8Array) => {
return btoa(string);
};
export const uint8ArraysAreEqual = (a: Uint8Array, b: Uint8Array) => {
if (a.length !== b.length) {
return false;
}
for (let i = 0; i < a.length; i++) {
if (a[i] !== b[i]) {
return false;
}
}
return true;
};