UNPKG

uint8arrays

Version:

Utility functions to make dealing with Uint8Arrays easier

7 lines 300 B
/** * Compares two Uint8Arrays representing two xor distances. Returns `-1` if `a` * is a lower distance, `1` if `b` is a lower distance or `0` if the distances * are equal. */ export declare function xorCompare(a: Uint8Array, b: Uint8Array): -1 | 0 | 1; //# sourceMappingURL=xor-compare.d.ts.map