package octez-smart-rollup-node-lib

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

Prints a numeric value as as a byte count.

0                ↦  "   0.0 B  "
999              ↦  " 999.0 B  "
1024             ↦  "   1.0 KiB"
1024 * 1023      ↦  "1023.0 KiB"
1024 * 1024 - 1  ↦  "1023.9 KiB"
val generic : (module Progress_engine.Integer.S with type t = 't) -> 't Progress_engine__.Printer.t
val of_int : int Progress_engine__.Printer.t
val of_float : float Progress_engine__.Printer.t
val of_int64 : int64 Progress_engine__.Printer.t

Quick builders for base-2 byte counts

val kib : int -> int64

kib n is n kibibytes.

val mib : int -> int64

mib n is n mebibytes.

val gib : int -> int64

gib n is n gibibytes.

val tib : int -> int64

tib n is n tebibytes.

val pib : int -> int64

pib n is n pebibytes.

val pp_int63 : Optint.Int63.t Fmt.t
OCaml

Innovation. Community. Security.