package rpmfile
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=101815a0802946784201f81f0e78c748
sha512=c13ff0435543254b2517b70eb67ae8ff02ff926858ab551696cea54ce122df81ebbc4e01a86b423d7bbdc1851dec1ddd9e719c7077548b910874d924e44d67b1
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.