package conex

  1. Overview
  2. Docs

Module Conex_resource.HeaderSource

Common header on disk

Sourcetype t = {
  1. version : int;
  2. created : timestamp;
  3. counter : Conex_utils.Uint.t;
  4. epoch : Conex_utils.Uint.t;
  5. name : name;
  6. typ : typ;
}

The header consists of version, created, counter, epoch, name, and typ.

pp is a pretty printer.

Sourceval wire : t -> Wire.t

wire t is the wire representation of t.

Sourceval of_wire : Wire.t -> (t, string) result

of_wire t converts t into a Header.t or error.

Sourceval counter : Conex_utils.Uint.t -> Conex_utils.Uint.t -> string

counter ctr epoch prints ctr, epoch to a string containing the counter and epoch (unless zero).