package rfc1951

  1. Overview
  2. Docs

Module Rfc1951.DefSource

Sourcetype dst = [
  1. | `Channel of out_channel
  2. | `Buffer of Buffer.t
  3. | `Manual
]
Sourcetype dynamic = {
  1. ltree : T.tree;
  2. dtree : T.tree;
  3. bltree : T.tree;
  4. h_lit : int;
  5. h_dst : int;
  6. h_len : int;
  7. symbols : int array;
}
Sourceval bl_tree : T.tree -> T.tree -> bl_count:int array -> int * T.tree
Sourceval dynamic_of_frequencies : literals:int array -> distances:int array -> dynamic
Sourceval invalid_encode : unit -> 'a
Sourcetype kind =
  1. | Flat
  2. | Fixed
  3. | Dynamic of dynamic
Sourcetype block = {
  1. kind : kind;
  2. last : bool;
}
Sourcetype encode = [
  1. | `Await
  2. | `Flush
  3. | `Block of block
]
Sourceval exists : [< `Copy of int * int | `End | `Literal of char ] -> block -> bool
Sourcetype encoder = {
  1. dst : dst;
  2. mutable blk : block;
  3. mutable hold : int;
  4. mutable bits : int;
  5. mutable bits_rem : [ `Rem of int | `Pending ];
  6. mutable flat : int;
  7. mutable fmax : int;
  8. mutable o : bigstring;
  9. mutable o_pos : int;
  10. mutable o_max : int;
  11. b : Queue.t;
  12. mutable k : encoder -> encode -> [ `Ok | `Partial | `Block ];
}
Sourceval o_rem : encoder -> int
Sourceval partial : ('a -> 'b) -> 'a -> [< `Await | `Block of 'c | `Copy of 'd | `End | `Flush | `Literal of 'e ] -> 'b
Sourceval flush : (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval c_byte : int -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval c_short : int -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval c_bits : int -> int -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval ensure : int -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval encode_flat_header : bool -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval encode_huffman : dynamic -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval encode_zigzag : dynamic -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval encode_dynamic_header : bool -> dynamic -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval encode_fixed_header : bool -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval pending_bits : (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceexception Flush_bits of {
  1. hold : int;
  2. bits : int;
}
Sourceval block : encoder -> encode -> [ `Block | `Ok | `Partial ]
Sourceval flush_bits : bits:int -> hold:int -> (encoder -> [ `Block | `Ok | `Partial ]) -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval write : encoder -> [ `Block | `Ok | `Partial ]
Sourceval force : block -> encoder -> [ `Block | `Ok | `Partial ]
Sourceval write_flat : encoder -> [ `Block | `Ok | `Partial ]
Sourceval first_entry : encoder -> [< `Await | `Block of block | `Flush ] -> [ `Block | `Ok | `Partial ]
Sourceval dst_rem : encoder -> int
Sourceval bits_rem : encoder -> int
Sourceval encoder : dst -> q:Queue.t -> encoder
Sourceval encode : encoder -> encode -> [ `Block | `Ok | `Partial ]
Sourcemodule Ns : sig ... end
OCaml

Innovation. Community. Security.