1 .TH "ZIP_SOURCE_FILE" "3" "March 11, 2015" "NiH" "Library Functions Manual"
6 \- create data source from a file
13 \fBzip_source_file\fR(\fIzip_t\ *archive\fR, \fIconst\ char\ *fname\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR);
19 \fBzip_source_file_create\fR(\fIconst\ char\ *fname\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR, \fIzip_error_t\ *error\fR);
23 \fBzip_source_file\fR()
25 \fBzip_source_file_create\fR()
26 create a zip source from a file.
36 is 0 or \-1, the whole file (starting from
40 If the file supports seek, the source can be used to open a zip archive from.
42 The file is opened and read when the data from the source is used, usually by
45 \fBzip_open_from_source\fR().
47 Upon successful completion, the created source is returned.
50 is returned and the error code in
54 is set to indicate the error.
56 \fBzip_source_file\fR()
58 \fBzip_source_file_create\fR()
69 Required memory could not be allocated.
81 Dieter Baron <\fIdillo@nih.at\fR>
83 Thomas Klausner <\fItk@giga.or.at\fR>