package plebeia

  1. Overview
  2. Docs
Functional storage using Merkle Patricia tree

Install

Dune Dependency

Authors

Maintainers

Sources

plebeia-2.0.1.tar.gz
md5=f7d5a3c433784118777699713d437f00
sha512=56d88855cd5553f8f398436c67df2229e4ccad75143057704e7af3153aad47ee6f09e6aeada049514a77871096aeb912ea3ddc4ad620970bf8301c2ee27f4c54

doc/plebeia/Plebeia/Index/index.html

Module Plebeia.IndexSource

1 Index in data files

Sourcetype t = private int

2 Constants

The zero index is treated specially.

Sourceval zero : t
Sourceval one : t
Sourceval max_int : t
Sourceval zero_then_none : t -> t option

This function returns None if t is zero.

2 Arithmetics

Sourceval pred : t -> t
Sourceval succ : t -> t
Sourceval (-) : t -> t -> t
Sourceval (+) : t -> t -> t
Sourceval (*) : t -> t -> t
Sourceval (/) : t -> t -> t
Sourceval compare : t -> t -> int
Sourceval max : t -> t -> t
Sourceval min : t -> t -> t

2 Conversion to integer types

Sourceval to_int64 : t -> int64
Sourceval of_int64 : int64 -> t
Sourceval to_int : t -> int
Sourceval of_int : int -> t
Sourceval of_uint32 : Stdint.Uint32.t -> t
Sourceval to_uint32 : t -> Stdint.Uint32.t
Sourcemodule Unsafe : sig ... end

These conversions may underflow/overflow. Use with caution.

2 Set and Map

Sourcemodule Set : sig ... end
Sourcemodule Map : sig ... end
Sourceval pp : Format.formatter -> t -> unit

2 Printing

Sourceval to_bytes_big_endian : t -> Bytes.t -> int -> unit

encoding

Sourceval of_bytes_big_endian : Bytes.t -> int -> t
OCaml

Innovation. Community. Security.