1ZIP_SOURCE_DATA(3)         Library Functions Manual         ZIP_SOURCE_DATA(3)
2
3
4

NAME

6       zip_source_buffer - create zip data source from buffer
7

LIBRARY

9       libzip (-lzip)
10

SYNOPSIS

12       #include <zip.h>
13
14       struct  zip_source  * zip_source_buffer(struct zip *archive, const void
15       *data); "zip_uint64_t len" "int freep"
16

DESCRIPTION

18       The function zip_source_buffer creates a zip  source  from  the  buffer
19       data  of size len.  If freep is non-zero, the buffer will be freed when
20       it is no longer needed.
21

RETURN VALUES

23       Upon successful completion, the created source is returned.  Otherwise,
24       NULL  is  returned and the error code in archive is set to indicate the
25       error.
26

ERRORS

28       zip_source_buffer fails if:
29
30              [ZIP_ER_INVAL]
31                  len is greater than zero and data is NULL.
32
33              [ZIP_ER_MEMORY]
34                  Required memory could not be allocated.
35

SEE ALSO

37       libzip(3),     zip_add(3),     zip_replace(3),      zip_source_file(3),
38       zip_source_filep(3),     zip_source_free(3),    zip_source_function(3),
39       zip_source_zip(3)
40

AUTHORS

42       Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
43
44
45
46NiH                             August 1, 2008              ZIP_SOURCE_DATA(3)
Impressum