package stdcompat

  1. Overview
  2. Docs
type t = string

Alias for Digest.t

val equal : t -> t -> bool
  • since 4.03.0: val equal : t -> t -> bool
val bytes : bytes -> t
  • since 4.02.0: val bytes : bytes -> t
val subbytes : bytes -> int -> int -> t
  • since 4.02.0: val subbytes : bytes -> int -> int -> t
val compare : t -> t -> int
  • since 4.00.0: val compare : t -> t -> int
val from_hex : string -> t
  • since 4.00.0: val from_hex : string -> t
val string : string -> t

Alias for Digest.string

val substring : string -> int -> int -> t
val channel : Stdlib.in_channel -> int -> t
  • since 3.08.0:

external channel : in_channel -> int -> t = "caml_md5_chan"

  • since 3.07.0: external channel : in_channel -> int -> t = "md5_chan"
val file : string -> t

Alias for Digest.file

val output : Stdlib.out_channel -> t -> unit

Alias for Digest.output

val input : Stdlib.in_channel -> t

Alias for Digest.input

val to_hex : t -> string

Alias for Digest.to_hex

OCaml

Innovation. Community. Security.