(a: Uint8Array, b: Uint8Array)
| 1 | export function equalUint8Arrays(a: Uint8Array, b: Uint8Array): boolean { |
| 2 | if (a.length !== b.length) { |
| 3 | return false; |
| 4 | } |
| 5 | |
| 6 | for (let i = 0; i < a.length; i++) { |
| 7 | if (a[i] !== b[i]) { |
| 8 | return false; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | return true; |
| 13 | } |
| 14 | |
| 15 | export function concatUint8Arrays(...arrays: Uint8Array[]) { |
| 16 | let totalLength = 0; |
no outgoing calls
no test coverage detected