package rfc1951

  1. Overview
  2. Docs

Module Def.NsSource

Sourceval _min_block_length : int
Sourceval _end_padding : int
Sourceval _max_match_offset : int
Sourceval _max_max_codeword_len : int
Sourceval _num_litlen_syms : int
Sourceval _max_litlen_codeword_len : int
Sourceval _num_offset_syms : int
Sourceval _max_offset_codeword_len : int
Sourceval _max_num_syms : int
Sourceval _num_symbol_bits : int
Sourceval _symbol_mask : int
Sourceval _min_match_len : int
Sourceval _max_match_len : int
Sourceval _soft_max_block_length : int
Sourceval _num_precode_syms : int
Sourceval _end_of_block : int
Sourceval _max_pre_codeword_len : int
Sourceval _max_extra_length_bits : int
Sourceval _max_extra_offset_bits : int
Sourcetype error = [
  1. | `Invalid_compression_level
  2. | `Unexpected_end_of_output
]
Sourceval pp_error : Format.formatter -> [< `Invalid_compression_level | `Unexpected_end_of_output ] -> unit
Sourceexception Malformed of error
Sourceval err_invalid_compression_level : unit -> 'a
Sourceval err_unexpected_end_of_output : unit -> 'a
Sourcetype lit_off = {
  1. litlen : int array;
  2. offset : int array;
}
Sourcetype codes = {
  1. codewords : lit_off;
  2. lens : lit_off;
}
Sourcetype encoder = {
  1. level : int;
  2. min_size_to_compress : int;
  3. max_search_depth : int;
  4. nice_match_length : int;
  5. offset_slot_fast : int array;
  6. freqs : lit_off;
  7. codes : codes;
  8. static_codes : codes;
  9. precode_freqs : int array;
  10. precode_lens : int array;
  11. precode_codewords : int array;
  12. precode_items : int array;
  13. mutable num_litlen_syms : int;
  14. mutable num_offset_syms : int;
  15. mutable num_explicit_lens : int;
  16. mutable num_precode_items : int;
}
Sourcetype output_bitstream = {
  1. i : bigstring;
  2. mutable i_pos : int;
  3. i_len : int;
  4. o : bigstring;
  5. mutable o_pos : int;
  6. o_len : int;
  7. mutable hold : int;
  8. mutable bits : int;
}
Sourcetype hc_matchfinder = {
  1. hash4_tab : int array;
  2. mutable next_hash4 : int;
  3. next_tab : int array;
}
Sourceval hc_matchfinder_hash4_order : int
Sourceval window_size : int
Sourceval hc_matchfinder_init : unit -> hc_matchfinder
Sourcetype sequence = {
  1. mutable litrunlen_and_length : int;
  2. mutable offset : int;
  3. mutable offset_symbol : int;
  4. mutable length_slot : int;
}
Sourceval num_literal_observation_types : int
Sourceval num_match_observation_types : int
Sourceval num_observation_types : int
Sourcetype block_split_stats = {
  1. new_observations : int array;
  2. observations : int array;
  3. mutable num_new_observations : int;
  4. mutable num_observations : int;
}
Sourceval split_stats : block_split_stats
Sourcetype lens = {
  1. mutable best : int;
  2. mutable nice : int;
  3. mutable max : int;
}
Sourceval blocktype_uncompressed : int
Sourceval blocktype_static_huffman : int
Sourceval blocktype_dynamic_huffman : int
Sourceval get_num_counter : int -> int
Sourceval sort_symbols : int -> int array -> int array -> int array -> int
Sourceval build_tree : int array -> int -> unit
Sourceval compute_length_counts : int array -> int -> int array -> int -> unit
Sourceval gen_codewords : int array -> int array -> int array -> int -> int -> unit
Sourceval make_canonical_huffman_code : int -> int -> int array -> int array -> int array -> unit
Sourceval reverse_codeword : int -> int -> int
Sourceval make_huffman_code : int -> int -> int array -> int array -> int array -> unit
Sourceval make_huffman_codes : lit_off -> codes -> unit
Sourceval init_static_codes : lit_off -> codes -> unit
Sourceval init_offset_slot_fast : int array -> unit
Sourceval add_bits : output_bitstream -> int -> int -> unit
Sourceval flush_bits : output_bitstream -> unit
Sourceval write_block_header : output_bitstream -> bool -> int -> unit
Sourceval align_bitstream : output_bitstream -> unit
Sourceval put_unaligned_le16 : output_bitstream -> int -> unit
Sourceval memcpy : bigstring -> src_off:int -> bigstring -> dst_off:int -> len:int -> unit
Sourceval write_uncompressed_block : output_bitstream -> int -> bool -> unit
Sourceval write_uncompressed_blocks : output_bitstream -> int -> bool -> unit
Sourceval flush_output : output_bitstream -> int
Sourceval compress_none : 'a -> bigstring -> bigstring -> int
Sourceval compute_precode_items : int array -> int -> int array -> int array -> int
Sourceval precompute_huffman_header : encoder -> unit
Sourceval write_huffman_header : encoder -> output_bitstream -> unit
Sourceval write_sequences : output_bitstream -> codes -> sequence list -> bigstring -> int ref -> unit
Sourceval write_end_of_block : output_bitstream -> codes -> unit
Sourceval flush_block : encoder -> output_bitstream -> bigstring -> int ref -> int -> bool -> sequence list -> unit
Sourceval init_block_split_stats : block_split_stats -> unit
Sourceval reset_symbol_frequencies : encoder -> unit
Sourceval num_observations_per_block_check : int
Sourceval do_end_block_check : block_split_stats -> int -> bool
Sourceval should_end_block : block_split_stats -> int -> int -> int -> bool
Sourceval _lz_extend : bigstring -> int -> int -> int -> int -> int
Sourceval lz_extend : bigstring -> int -> int -> int -> int -> int
Sourceval hc_matchfinder_slide_window : hc_matchfinder -> unit
Sourceval lz_hash : bigstring -> int -> int -> int
Sourceval _matchfinder_longest_rec : int -> int -> output_bitstream -> lens -> hc_matchfinder -> int -> int -> int
Sourceval hc_matchfinder_longest_match : hc_matchfinder -> output_bitstream -> lens -> int -> int
Sourceval _matchfinder_skip_rec : output_bitstream -> hc_matchfinder -> int -> unit
Sourceval hc_matchfinder_skip_positions : hc_matchfinder -> output_bitstream -> int -> unit
Sourceval choose_literal : encoder -> int -> int ref -> unit
Sourceval choose_match : encoder -> int -> int -> int -> sequence
Sourceval observe_match : block_split_stats -> int -> unit
Sourceval observe_literal : block_split_stats -> int -> unit
Sourceval compress_greedy : encoder -> bigstring -> bigstring -> int
Sourceval compress_lazy : 'a -> 'b -> 'c -> int
Sourceval encoder : int -> (encoder -> bigstring -> bigstring -> int) * encoder
Sourceval compress_bound : int -> int
OCaml

Innovation. Community. Security.