Function
equalBytes
(a: Uint8Array, b: Uint8Array)
Source from the content-addressed store, hash-verified
| 99 | } |
| 100 | |
| 101 | const equalBytes = (a: Uint8Array, b: Uint8Array): boolean => { |
| 102 | if (a.byteLength !== b.byteLength) return false |
| 103 | for (let i = 0; i < a.byteLength; i++) { |
| 104 | if (a[i] !== b[i]) return false |
| 105 | } |
| 106 | return true |
| 107 | } |
| 108 | |
| 109 | const BatchFromSchemaBinary = SchemaBinary.toCodec(Schema.NonEmptyArray(EntryFields)) |
| 110 | const encodeBatch = Schema.encodeEffect(BatchFromSchemaBinary) |
Tested by
no test coverage detected