package octez-shell-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Block level satisfying Index.Key interface.

type t = int32

The type for block levels

val t : t Repr.t
val equal : t -> t -> bool

Equality

val hash : t -> int

hash level returns the hash of the level.

val hash_size : int

hash_size is the constant size (in number of bits) of the hashed value of the type t.

val encoded_size : int

encoded_size is the constant size (in number of bytes) of the encoded value.

val encode : t -> string

Encoder

val decode : string -> int -> t

Decoder

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

Pretty-printer

OCaml

Innovation. Community. Security.