package carton

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

carton-1.2.0.tbz
sha256=7233406fc976184da8c1002f8a6d38beaf9a29968f8ce968d5175f39f777f594
sha512=9bd1cea6811e31ed8b7d1dc7b4ab2ddbe8f481402a340a3578c247c080d567f9cc97c164fd459c1c0a24cd9acb0852d99d70ba5fffef0ba6fac6af6d3e0ddbbc

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