plebeia

Functional storage using Merkle Patricia tree
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library plebeia
val encode : t -> string

len/8+1 bytes.

<--- len / 8 + 1 bytes -----------> <--- len bits ------------> +---------------------------+-------+ | segment bits (len bits) |10

,7

| +---------------------------+-------+

At most 7 zeros at tail.

Examples:

data | binary ----------------------------- empty segment | 80 LRLRLRLRL | 5540 LRLRLRLR | 5580 RRRRRRRRRRRRRRRRRRRR | fffff8

val decode : string -> t option
val decode_exn : string -> t
val encode_list : t list -> string
val decode_list : string -> t list option
val decode_list_slice : (string * int) -> (t list * int) option

slice version