package metadb

  1. Overview
  2. Docs

Module Metadb.HashSource

This is a wrapper for the standard Digest library.

Sourcetype t

Type of hashes

Sourceval hash_file : Path.root -> t

Take the MD5 hash of a file

Sourceval to_string : t -> string

Returns string representation of hash, in hexadecimal

Sourceval of_string : string -> t

Parse hash from hexadecimal string

Sourceval equal : t -> t -> bool

Equality of hashes

Sourceval compare : t -> t -> int

Wrapper for Digest.compare