fingerprint.mli (770B)
1 (* Unison file synchronizer: src/fingerprint.mli *) 2 (* Copyright 1999-2020, Benjamin C. Pierce (see COPYING for details) *) 3 4 type t 5 6 val m : t Umarshal.t 7 8 (* Os.safeFingerprint should usually be used rather than these functions *) 9 val file : Fspath.t -> Path.local -> t 10 val subfile : Fspath.t -> Int64.t -> Uutil.Filesize.t -> t 11 12 val toString : t -> string 13 14 (* This dummy fingerprint is guaranteed small and distinct from all 15 other fingerprints *) 16 val dummy : t 17 18 val hash : t -> int 19 val equal : t -> t -> bool 20 21 (* A pseudo-fingerprint has the same type as a real one (so it can 22 be stored in the archive, etc.), but it is computed just from the 23 size of the file, ignoring the contents *) 24 val pseudo : Path.local -> Uutil.Filesize.t -> t 25 val ispseudo : t -> bool