package carton-lwt

  1. Overview
  2. Docs

Module Dec.FpSource

Parameters

module Uid : Carton.UID

Signature

Sourcetype optint = Optint.t
Sourcetype kind =
  1. | Base of [ `A | `B | `C | `D ]
  2. | Ofs of {
    1. sub : int;
    2. source : weight;
    3. target : weight;
    }
  3. | Ref of {
    1. ptr : Uid.t;
    2. source : weight;
    3. target : weight;
    }
Sourcetype entry = {
  1. offset : int64;
  2. kind : kind;
  3. size : weight;
  4. consumed : int;
  5. crc : optint;
}
Sourceval check_header : 'fd read -> 'fd -> (int * string * int) Lwt.t
Sourcetype decoder
Sourcetype src = [
  1. | `Channel of in_channel
  2. | `String of string
  3. | `Manual
]
Sourcetype decode = [
  1. | `Await of decoder
  2. | `Peek of decoder
  3. | `Entry of entry * decoder
  4. | `End of Uid.t
  5. | `Malformed of string
]
Sourcetype header =
  1. | Consumed of Bigstringaf.t
  2. | None
Sourceval decoder : o:Bigstringaf.t -> allocate:(int -> De.window) -> src -> decoder
Sourceval decode : decoder -> decode
Sourceval number : decoder -> int
Sourceval version : decoder -> int
Sourceval count : decoder -> int
Sourceval src_rem : decoder -> int
Sourceval src : decoder -> Bigstringaf.t -> int -> int -> decoder
OCaml

Innovation. Community. Security.