package zarr

  1. Overview
  2. Docs

Module Zarr.UtilSource

Sourcemodule ExtPoint : sig ... end

The type representing a JSON extension point metadata configuration.

Sourcemodule ArrayMap : sig ... end

A finite map over integer array keys.

Sourcemodule Result_syntax : sig ... end

Result monad operator syntax.

Sourceval get_name : Yojson.Safe.t -> string

get_name c returns the name value of a JSON metadata extension point configuration of the form {"name": value, "configuration": ...}, as defined in the Zarr V3 specification.

Sourceval prod : int array -> int

prod x returns the product of the elements of x.

Sourceval max : int array -> int

max x returns the maximum element of an integer array x.

Sourceval create_parent_dir : string -> Unix.file_perm -> unit

create_parent_dir f p creates all the parent directories of file name f if they don't exist given file permissions p.

Sourceval sanitize_dir : string -> string

sanitize_dir d Chops off any trailing '/' in directory path d.

OCaml

Innovation. Community. Security.