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.3.0.tbz
sha256=0e709c06a5aeb2e6dea3282107167e143b9c22bc528ed75a8150067dbd8f957b
sha512=a1e2129b929f4dee96f8eabace173a57987a42657089135193a5f496088ba5e8fb2c620c4276a7385d2d97da4bbada5fb6790e230ade3b50df2d351bcde739a2
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)"
>