package carton

  1. Overview
  2. Docs
Implementation of PACKv2 file in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

carton-1.4.0.tbz
sha256=431e7df0e1c25209e502bec2125218921ce2652390d82c4fbd973655814ac247
sha512=f0dafcb8b175605164f2b177f3e4cb22485abdfadb2c36178c81e838c76e28d3a038d63ecbe2c649bbd70c1520ea81db954b9af0bd531b11a8ec08c25a60e95a

doc/carton.classeur/Classeur/Encoder/index.html

Module Classeur.EncoderSource

Sourcetype 'ctx hash = 'ctx Carton.First_pass.hash = {
  1. feed_bytes : bytes -> off:int -> len:int -> 'ctx -> 'ctx;
  2. feed_bigstring : Bstr.t -> 'ctx -> 'ctx;
  3. serialize : 'ctx -> string;
  4. length : int;
}
Sourcetype digest = Carton.First_pass.digest =
  1. | Digest : 'ctx hash * 'ctx -> digest
Sourcetype entry = {
  1. crc : Optint.t;
  2. offset : int64;
  3. uid : uid;
}
Sourcetype encoder
Sourcetype dst = [
  1. | `Channel of out_channel
  2. | `Buffer of Buffer.t
  3. | `Manual
]
Sourceval encoder : dst -> digest:digest -> pack:string -> ref_length:int -> entry array -> encoder
Sourceval encode : encoder -> [ `Await ] -> [ `Partial | `Ok ]
Sourceval dst_rem : encoder -> int
Sourceval dst : encoder -> bytes -> int -> int -> unit