package octez-internal-libs

  1. Overview
  2. Docs
A package that contains some libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-internal-libs.irmin_pack/Irmin_pack/Pack_value/Of_contents/index.html

Module Pack_value.Of_contentsSource

Parameters

module _ : Config
module Key : sig ... end

Signature

include Irmin.Type.S with type t = Contents.t
Sourceval t : t Repr__.Type.t
Sourcetype hash = Hash.t
Sourcetype key = Key.t
Sourceval hash : t -> hash
Sourceval kind : t -> Kind.t
Sourceval length_header : Kind.t -> [ `Varint ] option

Describes the length header formats for the data sections of pack entries.

Sourceval weight : t -> Irmin_pack__.Pack_value_intf.weight

weight t is the t's LRU weight.

Sourceval encode_bin : dict:(string -> int option) -> offset_of_key:(key -> Optint.Int63.t option) -> hash -> t Irmin.Type.encode_bin
Sourceval decode_bin : dict:(int -> string option) -> key_of_offset:(Optint.Int63.t -> key) -> key_of_hash:(hash -> key) -> t Irmin.Type.decode_bin
Sourceval decode_bin_length : string -> int -> int
Sourceval to_kinded : t -> Irmin_pack__.Pack_value_intf.kinded

to_kinded t returns a kinded version of t.

Sourceval of_kinded : Irmin_pack__.Pack_value_intf.kinded -> t

of_kinded k is the inverse of to_kinded t.

It is expected that an implementation only works for k that is returned from to_kinded t and will raise an exception otherwise.

OCaml

Innovation. Community. Security.