CompressionLevel Property

The compression level to use.

Syntax

ANSI (Cross Platform)
int GetCompressionLevel();
int SetCompressionLevel(int iCompressionLevel); Unicode (Windows) INT GetCompressionLevel();
INT SetCompressionLevel(INT iCompressionLevel);
@property (nonatomic,readwrite,assign,getter=compressionLevel,setter=setCompressionLevel:) int compressionLevel;
- (int)compressionLevel;
- (void)setCompressionLevel:(int)newCompressionLevel;
#define PID_SEVENZIP_COMPRESSIONLEVEL 2

IPWORKSZIP_EXTERNAL void* IPWORKSZIP_CALL IPWorksZip_SevenZip_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSZIP_EXTERNAL int IPWORKSZIP_CALL IPWorksZip_SevenZip_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

3

Remarks

This property is only applicable when using the LZMA CompressionMethod. This property specifies the level of compression to be used,valid values are: 1, 2, 3, 4 and 5. Higher values will cause the class to compress better; lower values will cause the class to compress faster. The default value is 3.

You may optionally set this property from within the BeginFile event to apply different levels of compression to different files.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 C++ Edition - Version 20.0 [Build 8300]