package carton-miou
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Implementation of PACK file in OCaml for Miou
Install
dune-project
Dependency
Authors
Maintainers
Sources
carton-1.4.0.tbz
sha256=431e7df0e1c25209e502bec2125218921ce2652390d82c4fbd973655814ac247
sha512=f0dafcb8b175605164f2b177f3e4cb22485abdfadb2c36178c81e838c76e28d3a038d63ecbe2c649bbd70c1520ea81db954b9af0bd531b11a8ec08c25a60e95a
doc/carton-miou.unix/Carton_miou_unix/index.html
Module Carton_miou_unixSource
Source
val index :
?pagesize:int ->
?cachesize:int ->
hash_length:int ->
ref_length:int ->
Fpath.t ->
file_descr Classeur.tSource
val make :
?pagesize:int ->
?cachesize:int ->
?z:De.bigstring ->
ref_length:int ->
?index:(Carton.Uid.t -> Carton.location) ->
Fpath.t ->
file_descr Carton.tSource
type config = {threads : int option;pagesize : int option;cachesize : int option;ref_length : int;identify : Carton.identify;on_entry : max:int -> entry -> unit;on_object : cursor:int -> Carton.Value.t -> Carton.Uid.t -> unit;
}Source
val config :
?threads:int ->
?pagesize:int ->
?cachesize:int ->
?on_entry:(max:int -> entry -> unit) ->
?on_object:(cursor:int -> Carton.Value.t -> Carton.Uid.t -> unit) ->
ref_length:int ->
Carton.identify ->
configSource
val compile_on_seq :
?on:(max:int -> entry -> unit) ->
identify:Carton.identify ->
digest_length:int ->
[ `Entry of Carton.First_pass.entry
| `Hash of string
| `Inflate of (Carton.Kind.t * int) option * string
| `Number of int ]
Seq.t ->
Carton.oracleSource
val verify_from_pack :
cfg:config ->
digest:Carton.First_pass.digest ->
Fpath.t ->
Carton.status array * stringSource
val verify_from_idx :
cfg:config ->
digest:Carton.First_pass.digest ->
Fpath.t ->
Carton.status array * stringSource
val delta :
ref_length:int ->
load:(Carton.Uid.t -> 'meta -> Carton.Value.t) ->
'meta Cartonnage.Entry.t Seq.t ->
'meta Cartonnage.Target.t Seq.tSource
val to_pack :
?with_header:int ->
?with_signature:Carton.First_pass.digest ->
?cursor:int ->
?level:int ->
load:(Carton.Uid.t -> 'meta -> Carton.Value.t) ->
'meta Cartonnage.Target.t Seq.t ->
string Seq.tSource
val entries_of_pack :
cfg:config ->
digest:Carton.First_pass.digest ->
Fpath.t ->
(file_descr Carton.t * delta option) Cartonnage.Entry.t arraySource
type sort = {sort : 'a. 'a Cartonnage.Entry.t array list -> int * 'a Cartonnage.Entry.t Seq.t;
}Source
val delete_in_place :
cfg:config ->
digest:Carton.First_pass.digest ->
pack:Fpath.t ->
?level:int ->
Carton.Uid.t list ->
unitdelete_in_place ~cfg ~digest ~pack uids modifies the PACK file pack in place. Entries whose UID is in uids, together with the old versions of their transitive delta-descendants, become ghost entries: their bytes remain in the file (so the PACK stays structurally parseable) but they are no longer referenced by the IDX. Fresh copies of every descendant are appended at the end of the PACK (direct children as bases, deeper descendants as carbon-copied deltas with recomputed ofs-delta headers). The header object count and trailer hash are updated accordingly. This operation does not reclaim disk space for the removed/replaced entries.
/
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>