]> mj.ucw.cz Git - libucw.git/blob - lib/bitsig.h
Added very simple functions for emulating a fastbuf stream over a static
[libucw.git] / lib / bitsig.h
1 /*
2  *      Bit Array Signatures -- A Dubious Detector of Duplicates
3  *
4  *      (c) 2002 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 struct bitsig;
11
12 struct bitsig *bitsig_init(uns perrlog, uns maxn);
13 void bitsig_free(struct bitsig *b);
14 int bitsig_member(struct bitsig *b, byte *item);
15 int bitsig_insert(struct bitsig *b, byte *item);