mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Allow all Matroska AttachedFiles to be read & written via metadata tags
This commit is contained in:
+14
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user