plebeia

Functional storage using Merkle Patricia tree
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library plebeia
Module Plebeia . Snapshot . Internal . Elem
type t =
| End
| BudNone
| BudSome
| Internal
| Extender of Segment.segment
| Value of Value.t
| Cached of int32
| HashOnly of Hash.t
val encoding : int -> t Data_encoding.t

End: <1B> +----+ | 00 | +----+

BudNone: <1B> +----+ | 01 | +----+

BudSome: <1B> +----+ | 02 | +----+

Internal: <1B> +----+ | 03 | +----+

Extender: <1B> < variable > +----+------------+ | 04 | segment | +----+------------+

* See Segment.encoding for the encoding of segment

Value: <1B> < variable > +----+------------+ | 05 | value | +----+------------+

* See Value.encoding for the encoding of value

Cached:

<1B> <--- 4 bytes ----> +----+------------------+ | 06 |index (big endian)| +----+------------------+

HashOnly:

<1B> < variable > +----+------------+ | 07 | hash | +----+------------+

* See Hash.encoding for the encoding of hash

val pp : Stdlib.Format.formatter -> t -> unit