1 .TH "ZIP_SOURCE_BUFFER" "3" "October 17, 2014" "NiH" "Library Functions Manual"
5 \fBzip_source_buffer\fR
6 \- create zip data source from buffer
10 \fB#include <zip.h>\fR
15 \fBzip_source_buffer\fR(\fIzip_t\ *archive\fR, \fIconst\ void\ *data\fR, \fIzip_uint64_t\ len\fR, \fIint\ freep\fR);
21 \fBzip_source_buffer_create\fR(\fIconst\ void\ *data\fR, \fIzip_uint64_t\ len\fR, \fIint\ freep\fR, \fIzip_error_t\ *error\fR);
25 \fBzip_source_buffer\fR()
27 \fBzip_source_buffer_create\fR()
28 create a zip source from the buffer
34 is non-zero, the buffer will be freed when it is no longer needed.
36 must remain valid for the lifetime of the created source.
38 The source can be used to open a zip archive from.
40 Upon successful completion, the created source is returned.
43 is returned and the error code in
47 is set to indicate the error.
49 \fBzip_source_buffer\fR()
51 \fBzip_source_buffer_create\fR()
56 is greater than zero and
62 Required memory could not be allocated.
66 zip_open_from_source(3),
70 Dieter Baron <\fIdillo@nih.at\fR>
72 Thomas Klausner <\fItk@giga.or.at\fR>