Skip to content

five-on-it / packages/protocol/src/snapshot-v2 / same

Function: same() ​

same(a, b, from, to): boolean

Defined in: packages/protocol/src/snapshot-v2.ts:187

Whether a range of two records holds the same bytes.

Parameters ​

a ​

Uint8Array

b ​

Uint8Array

from ​

number

to ​

number

Returns ​

boolean