@ethereumjs/util / matchingBitsLength
matchingBitsLength(
bits1,bits2):number
Defined in: packages/util/src/bytes.ts:627
Compares two arrays of bits (0 or 1) and returns the count of consecutively matching bits from the start.
number[]
The first array of bits, in bytes or bits.
number[]
The second array of bits, in bytes or bits.
number
The count of consecutively matching bits from the start.