@@ -46,7 +46,7 @@ struct zip_source;
46
46
47
47
#define LIBZIPPP_ENTRY_PATH_SEPARATOR ' /'
48
48
#define LIBZIPPP_ENTRY_IS_DIRECTORY (str ) ((str).length()>0 && (str)[(str).length()-1 ]==LIBZIPPP_ENTRY_PATH_SEPARATOR)
49
- #define DEFAULT_CHUNK_SIZE 524288
49
+ #define LIBZIPPP_DEFAULT_CHUNK_SIZE 524288
50
50
51
51
// libzip documentation
52
52
// - http://www.nih.at/libzip/libzip.html
@@ -300,10 +300,10 @@ namespace libzippp {
300
300
* a memory allocation has failed, LIBZIPPP_ERROR_FREAD_FAILURE if zip_fread() didn't succeed to read data,
301
301
* LIBZIPPP_ERROR_OWRITE_INDEX_FAILURE if the last ofstream operation has failed, LIBZIPPP_ERROR_OWRITE_FAILURE if fread() didn't
302
302
* return the exact amount of requested bytes and -9 if the amount of extracted bytes didn't match the size of the file (unknown error).
303
- * If the provided chunk size is zero, it will be defaulted to DEFAULT_CHUNK_SIZE (512KB).
303
+ * If the provided chunk size is zero, it will be defaulted to LIBZIPPP_DEFAULT_CHUNK_SIZE (512KB).
304
304
* The method doesn't close the ofstream after the extraction.
305
305
*/
306
- int readEntry (const ZipEntry& zipEntry, std::ostream& ofOutput, State state=CURRENT, libzippp_uint64 chunksize=DEFAULT_CHUNK_SIZE ) const ;
306
+ int readEntry (const ZipEntry& zipEntry, std::ostream& ofOutput, State state=CURRENT, libzippp_uint64 chunksize=LIBZIPPP_DEFAULT_CHUNK_SIZE ) const ;
307
307
308
308
/* *
309
309
* Deletes the specified entry from the zip file. If the entry is a folder, all its
@@ -514,10 +514,10 @@ namespace libzippp {
514
514
* a memory allocation has failed, LIBZIPPP_ERROR_FREAD_FAILURE if zip_fread() didn't succeed to read data,
515
515
* LIBZIPPP_ERROR_OWRITE_INDEX_FAILURE if the last ofstream operation has failed, LIBZIPPP_ERROR_OWRITE_FAILURE if fread() didn't
516
516
* return the exact amount of requested bytes and -9 if the amount of extracted bytes didn't match the size of the file (unknown error).
517
- * If the provided chunk size is zero, it will be defaulted to DEFAULT_CHUNK_SIZE (512KB).
517
+ * If the provided chunk size is zero, it will be defaulted to LIBZIPPP_DEFAULT_CHUNK_SIZE (512KB).
518
518
* The method doesn't close the ofstream after the extraction.
519
519
*/
520
- int readContent (std::ostream& ofOutput, ZipArchive::State state=ZipArchive::CURRENT, libzippp_uint64 chunksize=DEFAULT_CHUNK_SIZE ) const ;
520
+ int readContent (std::ostream& ofOutput, ZipArchive::State state=ZipArchive::CURRENT, libzippp_uint64 chunksize=LIBZIPPP_DEFAULT_CHUNK_SIZE ) const ;
521
521
522
522
private:
523
523
const ZipArchive* zipFile;
0 commit comments