Skip to content

Function: equalBytes() ​

equalBytes(a, b): boolean

Defined in: utils.ts:146

Equality for equal-length arrays that does not exit at the first difference. Arrays of different length compare unequal immediately.

Parameters ​

a ​

Uint8Array

First array.

b ​

Uint8Array

Second array.

Returns ​

boolean

true when both arrays have the same length and contents.

Apache-2.0.