unison

Fork of Unison, a bi-directional file synchronization tool
git clone git://git.laack.co/unison.git
Log | Files | Refs | README | LICENSE

checksum.mli (738B)


      1 (* Unison file synchronizer: src/checksum.mli *)
      2 (* Copyright 1999-2020, Benjamin C. Pierce (see COPYING for details) *)
      3 
      4 type t = int
      5 type u = int array
      6 
      7 val init : int             (* blockSize *)
      8         -> u               (* pre-computed table *)
      9 
     10 val substring : string
     11              -> int        (* offset in string *)
     12              -> int        (* substring length *)
     13              -> t
     14 
     15 val subbytes : bytes
     16              -> int        (* offset in string *)
     17              -> int        (* substring length *)
     18              -> t
     19 
     20 val roll : u               (* string length *)
     21         -> t               (* previous checksum *)
     22         -> char            (* outgoing char *)
     23         -> char            (* incoming char *)
     24         -> t