Module Bi_stream
Streaming utilities (experimental)
val read_stream : (string -> 'a array) -> Stdlib.in_channel -> 'a Stdlib.Stream.tread_stream of_string iccreates an OCaml stream from an input channelic. The data come in chunks and each chunk is converted from a string to an array by callingof_string.
val write_stream : ?chunk_len:int -> ('a array -> string) -> Stdlib.out_channel -> 'a Stdlib.Stream.t -> unitwrite_stream to_string oc stwrites an OCaml stream to the output channeloc. It creates chunks ofchunk_len, except for the last chunk which is usually smaller.- parameter chunk_len
has a default value of 1024. The limit supported by this OCaml implementation on 32-bit platforms is 16777215.