Def.Ns
exception Malformed of error
type encoder = {
level : int; |
min_size_to_compress : int; |
max_search_depth : int; |
nice_match_length : int; |
offset_slot_fast : int array; |
freqs : lit_off; |
codes : codes; |
static_codes : codes; |
precode_freqs : int array; |
precode_lens : int array; |
precode_codewords : int array; |
precode_items : int array; |
mutable num_litlen_syms : int; |
mutable num_offset_syms : int; |
mutable num_explicit_lens : int; |
mutable num_precode_items : int; |
}
val hc_matchfinder_init : unit -> hc_matchfinder
val split_stats : block_split_stats
val init_output : bigstring -> bigstring -> output_bitstream
val add_bits : output_bitstream -> int -> int -> unit
val flush_bits : output_bitstream -> unit
val write_block_header : output_bitstream -> bool -> int -> unit
val align_bitstream : output_bitstream -> unit
val put_unaligned_le16 : output_bitstream -> int -> unit
val write_uncompressed_block : output_bitstream -> int -> bool -> unit
val write_uncompressed_blocks : output_bitstream -> int -> bool -> unit
val flush_output : output_bitstream -> int
val precompute_huffman_header : encoder -> unit
val write_huffman_header : encoder -> output_bitstream -> unit
val write_sequences :
output_bitstream ->
codes ->
sequence list ->
bigstring ->
int Stdlib.ref ->
unit
val write_end_of_block : output_bitstream -> codes -> unit
val flush_block :
encoder ->
output_bitstream ->
bigstring ->
int Stdlib.ref ->
int ->
bool ->
sequence list ->
unit
val init_block_split_stats : block_split_stats -> unit
val reset_symbol_frequencies : encoder -> unit
val do_end_block_check : block_split_stats -> int -> bool
val should_end_block : block_split_stats -> int -> int -> int -> bool
val _lz_extend : bigstring -> int -> int -> int -> int -> int
val lz_extend : bigstring -> int -> int -> int -> int -> int
val hc_matchfinder_slide_window : hc_matchfinder -> unit
val lz_hash : bigstring -> int -> int -> int
val _matchfinder_longest_rec :
int ->
int ->
output_bitstream ->
lens ->
hc_matchfinder ->
int ->
int ->
int
val hc_matchfinder_longest_match :
hc_matchfinder ->
output_bitstream ->
lens ->
int ->
int
val _matchfinder_skip_rec : output_bitstream -> hc_matchfinder -> int -> unit
val hc_matchfinder_skip_positions :
hc_matchfinder ->
output_bitstream ->
int ->
unit
val choose_literal : encoder -> int -> int Stdlib.ref -> unit
val observe_match : block_split_stats -> int -> unit
val observe_literal : block_split_stats -> int -> unit
val deflate :
?level:int ->
( char, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout )
Stdlib.Bigarray.Array1.t ->
( char, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout )
Stdlib.Bigarray.Array1.t ->
( int, [> error ] ) Stdlib.result