HomeSoftware Heritage

Add function is_hash_in_bytearray.

Description

Add function is_hash_in_bytearray.

To search for a hash in an array by dichotomy. This will be used to
exclude existing content from a replay to avoid useless copies.

Details

Provenance
vlorentzAuthored on Jul 25 2019, 3:03 PM
vlorentzPushed on Aug 5 2019, 10:53 AM
Differential Revision
D1770: Add function is_hash_in_bytearray.
Parents
rDJNL2f09a51de6d2: Add test for the CLI endpoint content_replay.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 7142
Build 10072: test-and-build