Source

dumbstreaming / dumbstreaming_it.mli

open Ds_types
;

module Make (I : IT_TYPE)
 :
  sig
    value read :
      ~get_piece_it :
       ( ~totalsize:int64 ->
         ~totalcount:int ->
         ~piecesize:int ->
         ~piecenumber:int ->
         I.iteratee char 'i
       )
      -> ~combine_it : (I.iteratee 'i 'a)
      -> I.iteratee char (option 'a)
    ;



    (* for tests: *)
    value read_uint : I.iteratee char int;
    value read_uint_nz : I.iteratee char int;
    value read_int : I.iteratee char int;
    value read_int_nz : I.iteratee char int;

    value read_uint32 : I.iteratee char int32;
    value read_uint32_nz : I.iteratee char int32;
    value read_int32 : I.iteratee char int32;
    value read_int32_nz : I.iteratee char int32;

    value read_uint64 : I.iteratee char int64;
    value read_uint64_nz : I.iteratee char int64;
    value read_int64 : I.iteratee char int64;
    value read_int64_nz : I.iteratee char int64;
    (* . *)


    (* for tests: *)
    value read_lengths : int -> I.iteratee char (list int)
    ;

  end
;