c++ - zip_source_zip in libzip: what is the first argument? -
i using libzip in order move files in zip zip. firstly utilize zip_source_zip create zip_source file in zip, , zip_add add together file zip.
but there argument don't understand stands for. first argument of zip_source_zip. here prototype:
struct zip_source * zip_source_zip(struct zip *archive, struct zip *srcarchive, zip_uint64_t srcidx, int flags, zip_uint64_t start, zip_int64_t len)
srcarchive zip take file, srcidx position in zip of file want, flags flags :p, start first byte want take file , len number of bytes start.
but don't understand first argument archive stands for. set pointer of destination zip didn't work.
do know first argument stands for? give thanks you!
ps: here page function described: http://www.nih.at/libzip/zip_source_zip.html
each zip_source
should associated zip archive operate on (for example, zip_add()
function can used add together contents of source particular zip archive). doesn't matter whether create zip_source
memory buffer (using zip_source_buffer()
), zip archive opened reading (what doing) or using other method. basically, first zip archive target modified when adding contents of zip_source
object, , sec zip archive argument 1 of contents copied source.
c++ function zip arguments static-libraries
No comments:
Post a Comment