package plebeia

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

Module Fs.NameCompressedSource

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
Sourcetype t = string

Type of file and directory names

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

NameCompressed must be initialized with all the known directory keywords