package plebeia

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

Install

Dune Dependency

Authors

Maintainers

Sources

plebeia-2.0.2.tar.gz
md5=aecc184507170faed53e543195687233
sha512=9799144ea7ebc997681353136393815ac73040e2ae5227f2787c1331bb393dbd318b1fa3ae8d075b383cda4fe7584b80f7f32a4aa99c870a0bd2d76e91024bf5

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.