package rpmfile
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=0eb303a5fa95fd0988b01735281a0ef7
sha512=7997c364529c676c7be3fa121b9d3115302d528919a4528a1f94d76ae6f0a8610fdb72e4e6cb8ce30ae7c05beae5a60d0b9a3141ae7186abae2edb5efc4dd713
doc/rpmfile.cpio/Rpmfile_cpio/Reader/index.html
Module Rpmfile_cpio.ReaderSource
The module provides functions to read CPIO archives from incoming byte streams.
The short alias to incoming byte streams.
Inputting file entry from archives
val input_entry_with :
input_payload:(In.t -> int -> File_entry.contents) ->
In.t ->
File_entry.tinput_entry_with ~input_payload in_stream
Input a file entry from an incoming byte stream using the input payload via the input_payload function.
Example
let input_payload in_stream payload_size = (* processing *) in
Rpmfile_cpio.Reader.input_entry_with ~input_payload in_streaminput_entry_without_payload in_stream
Similar to the input_entry_with function, but it skips file entries payload.
input_entry in_stream
Similar to the input_entry_with function, it inputs file entries as string.
Inputting all file entries from archives
val input_entries_with :
input_payload:(In.t -> int -> File_entry.contents) ->
In.t ->
int ->
File_entry.t listinput_entries_wit ~input_payload in_stream n
Input the n number of file entries from the incoming byte stream by using the input payload via the input_payload function.
See also the input_entry_with function for details.
val input_entries_seq_with :
input_payload:(In.t -> int -> File_entry.contents) ->
In.t ->
int ->
File_entry.t Seq.tinput_entries_seq_with ~input_payload in_stream n
Similar to the input_entries_with function, but returns lazy sequence.
input_entries_without_payloads in_stream n
Similar to the input_entries_with function, but it skips file entries payloads.
input_entries in_stream n
Similar to the input_entry_with function, it inputs file entries as strings.
input_entries in_stream n
Similar to the input_entries function, but returns lazy sequence.