Inter.Compress
type dict_key = int
type pack_offset = Optint.Int63.t
type name =
| Indirect of dict_key
| Direct of Val.step
type address =
| Offset of pack_offset
| Hash of hash
type ptr = {
index : dict_key;
hash : address;
}
type tree = {
depth : dict_key;
length : dict_key;
entries : ptr list;
type value =
| Contents of name * address * Val.metadata
| Node of name * address
type v =
| Values of value list
| Tree of tree
type v1 = {
mutable length : int;
v : v;
type tagged_v =
| V0_stable of v
| V0_unstable of v
| V1_root of v1
| V1_nonroot of v1
type t = {
hash : hash;
tv : tagged_v;
val t : t Irmin.Type.t