package carton

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

Install

Dune Dependency

Authors

Maintainers

Sources

carton-1.1.0.tbz
sha256=f7d8bf836b5ae2c7d72b72460f1319a176351923b446395f6551906d3a273628
sha512=534b12ec8ba73d135dc8242d49cdac064414cf6c2257d6aac30b163697c676b9f5571ba85dec2af5116693e4520fb9bc97bc20f2356b05bc39817eea50a175d8

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
OCaml

Innovation. Community. Security.