package magic

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
exception Failure of string
type flag =
  1. | Compress
  2. | Devices
  3. | Mime
  4. | Continue
  5. | Check
  6. | Preserve_atime
  7. | Raw
val make : ?flags:flag list -> string list -> t
val create : ?flags:flag list -> string list -> t
val close : t -> unit
val file : t -> string -> string
val buffer : t -> ?len:int -> string -> string
val setflags : t -> flag list -> unit
val load : t -> string list -> unit
val compile : t -> string list -> unit
val check : t -> string list -> bool
OCaml

Innovation. Community. Security.