StreamFormat Property

The stream format to use.

Syntax

ANSI (Cross Platform)
int GetStreamFormat();
int SetStreamFormat(int iStreamFormat); Unicode (Windows) INT GetStreamFormat();
INT SetStreamFormat(INT iStreamFormat);

Possible Values

SF_DEFLATE(0), 
SF_ZLIB(1),
SF_GZIP(2)
@property (nonatomic,readwrite,assign,getter=streamFormat,setter=setStreamFormat:) int streamFormat;
- (int)streamFormat;
- (void)setStreamFormat:(int)newStreamFormat;

Possible Values

SF_DEFLATE(0), 
SF_ZLIB(1),
SF_GZIP(2)
#define PID_ZIPSTREAM_STREAMFORMAT 4

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

Default Value

0

Remarks

The stream format to use, by default Deflate.

All three stream formats use the Deflate algorithm specified in RFC 1951, which is the same algorithm used by Zip. The Zlib stream format adds a two-byte header and an Adler-32 checksum; the Gzip format adds a longer header and a CRC checksum, and is identical to the Gzip file format.

Caution: The terms zlib and deflate are sometimes used interchangeably (which is technically incorrect).

Data Type

Integer

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