mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
10 lines
229 B
TypeScript
10 lines
229 B
TypeScript
export function compareUint8Arrays(a: Uint8Array, b: Uint8Array) {
|
|
if (a.length !== b.length) return false;
|
|
|
|
for (let index = 0; index < a.length; index++) {
|
|
if (a[index] !== b[index]) return false;
|
|
}
|
|
|
|
return true;
|
|
}
|