package plebeia

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

Compact path encoding specialized for Tezos context.

Hex 0-9a-f+, 2n chars, 2n >= 16 : 4bits/char + 1 bit L flag, no terminator. Assuming all the file names at the same directory have the same length.

Other Hex 0-9a-f+ : 5bits/char + 2 bit RL flag, 1 bit terminator

Others: : 32bit hash + 2 bit RR flag

Compact path encoding specialized for Tezos context.

Hex 0-9a-f+, 2n chars, 2n >= 16 : 4bits/char + 1 bit L flag, no terminator. Assuming all the file names at the same directory have the same length.

Other Hex 0-9a-f+ : 5bits/char + 2 bit RL flag, 1 bit terminator

Others: : 32bit hash + 2 bit RR flag

include Fs_intf.NAME with type t = string
type t = string

Type of file and directory names

val equal : t -> t -> bool
val to_string : t -> string
val pp : Stdlib.Format.formatter -> t -> unit
val to_segment : t -> Segment.t
val of_segment : Segment.t -> t option
val test : string -> unit
val init : string list -> unit

NameCompressed must be initialized with all the known directory keywords

OCaml

Innovation. Community. Security.