Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val sexp_of_methd : methd -> Sexplib0.Sexp.t
val sexp_of_descriptor : descriptor -> Sexplib0.Sexp.t
type entry = {
version_needed : int;
flags : int;
trailing_descriptor_present : bool;
methd : methd;
descriptor : descriptor;
filename : string;
extra : string;
}
val sexp_of_entry : entry -> Sexplib0.Sexp.t
val stream_files :
Lwt_io.input_channel ->
(entry -> 'a action) ->
(entry * 'a data) Lwt_stream.t
Stream rows from an Lwt_io.input_channel
.
SZXX.Zip.stream_files ic callback
ic
: The channel to read from
callback
: function called on every file found within the zip archive. Returning Skip
will skip over the compressed bytes of this file without attempting to uncompress them. Returning String
will collect the whole uncompressed file into a single string. Returning Parse
will apply an Angstrom
parser to the file while it is being uncompressed without having to fully uncompress it first.
The final stream returns all files in the same order they were found in the archive.