Manpages - zip_source_buffer_fragment.3

libzip (-lzip)

The functions

and

create a zip source from the data in

specifies the number of fragments. If

is non-zero, the data will be freed when it is no longer needed.

struct zip_stat { zip_uint8_t data; / pointer to the actual data / zip_uint64_t length; / length of this fragment */ };

The data

point to must remain valid for the lifetime of the created source.

itself can be discarded once the source is created.

The source can be used to open a zip archive from.

Upon successful completion, the created source is returned. Otherwise,

is returned and the error code in

or

is set to indicate the error.

and

fail if:

is greater than zero and

is

Required memory could not be allocated.

and

were added in libzip 1.4.0.

and

Author: dt

Created: 2022-02-21 Mon 14:21