package carton

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

Install

Dune Dependency

Authors

Maintainers

Sources

carton-1.0.0.tbz
sha256=0d5e34a76527d6537264667c9a27625600c1d84ca38cdb2da6563aabc70135cd
sha512=3ef5fe849a51cca67eddd57869aacf38e4f3efa30f69f81fd5d32603a79e0706efebcfd3def4889a1713dce1e568e12e28936552ba561dd4d575c43e8962e44b

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 : De.bigstring -> '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
OCaml

Innovation. Community. Security.