Aspose::Zip Namespace Reference

Classes

class  CRC32
 Calculates a 32bit Cyclic Redundancy Checksum (CRC) using the same polynomial used by Zip.
 
class  DeflateStream
 A class for compressing and decompressing streams using the Deflate algorithm.
 
class  GZipStream
 A class for compressing and decompressing GZIP streams.
 
class  ZlibBaseStream
 The internal class to implement compression and decompression using Zlib library.
 
class  ZlibCodec
 Encoder and Decoder for ZLIB and DEFLATE (IETF RFC1950 and RFC1951).
 
class  ZlibStream
 Represents a Zlib stream for compression or decompression.
 

Enumerations

enum  FlushType {
  FlushType::None = 0, FlushType::Partial, FlushType::Sync, FlushType::Full,
  FlushType::Finish, FlushType::Block, FlushType::Trees
}
 
enum  CompressionLevel {
  CompressionLevel::None = 0, CompressionLevel::Level0 = 0, CompressionLevel::BestSpeed = 1, CompressionLevel::Level1 = 1,
  CompressionLevel::Level2 = 2, CompressionLevel::Level3 = 3, CompressionLevel::Level4 = 4, CompressionLevel::Level5 = 5,
  CompressionLevel::Default = 6, CompressionLevel::Level6 = 6, CompressionLevel::Level7 = 7, CompressionLevel::Level8 = 8,
  CompressionLevel::BestCompression = 9, CompressionLevel::Level9 = 9
}
 The compression level to be used when using a DeflateStream or ZlibStream with CompressionMode.Compress. More...
 
enum  CompressionStrategy {
  CompressionStrategy::Default = 0, CompressionStrategy::Filtered = 1, CompressionStrategy::HuffmanOnly = 2, CompressionStrategy::Rle = 3,
  CompressionStrategy::Fixed = 4
}
 
enum  CompressionMode { CompressionMode::Compress = 0, CompressionMode::Decompress = 1 }
 An enum to specify the direction of transcoding - whether to compress or decompress. More...
 
enum  ZlibStreamFlavor { ZlibStreamFlavor::DEFLATE = -15, ZlibStreamFlavor::ZLIB = 15, ZlibStreamFlavor::GZIP = ZLIB + 16 }
 Zlib-specific flavor bits. More...
 
enum  ZlibConstants : int {
  ZlibConstants::Z_BUF_ERROR = -5, ZlibConstants::Z_DATA_ERROR = -3, ZlibConstants::Z_STREAM_ERROR = -2, ZlibConstants::Z_OK = 0,
  ZlibConstants::Z_STREAM_END = 1, ZlibConstants::Z_NEED_DICT = 2, ZlibConstants::WindowBitsMax = 15, ZlibConstants::WindowBitsDefault = WindowBitsMax,
  ZlibConstants::WorkingBufferSizeDefault = 8192, ZlibConstants::WorkingBufferSizeMin = 128
}
 A bunch of constants used in the Zlib interface. More...
 

Enumeration Type Documentation

◆ CompressionLevel

The compression level to be used when using a DeflateStream or ZlibStream with CompressionMode.Compress.

Enumerator
None 
Level0 
BestSpeed 
Level1 
Level2 
Level3 
Level4 
Level5 
Default 
Level6 
Level7 
Level8 
BestCompression 
Level9 

◆ CompressionMode

An enum to specify the direction of transcoding - whether to compress or decompress.

Enumerator
Compress 
Decompress 

◆ CompressionStrategy

Describes options for how the compression algorithm is executed. Different strategies work better on different sorts of data. The strategy parameter can affect the compression ratio and the speed of compression but not the correctness of the compresssion.

Enumerator
Default 
Filtered 
HuffmanOnly 
Rle 
Fixed 

◆ FlushType

Describes how to flush the current deflate operation. The different FlushType values are useful when using a Deflate in a streaming application.

Enumerator
None 
Partial 
Sync 
Full 
Finish 
Block 
Trees 

◆ ZlibConstants

enum Aspose::Zip::ZlibConstants : int
strong

A bunch of constants used in the Zlib interface.

Enumerator
Z_BUF_ERROR 
Z_DATA_ERROR 
Z_STREAM_ERROR 
Z_OK 
Z_STREAM_END 
Z_NEED_DICT 
WindowBitsMax 
WindowBitsDefault 
WorkingBufferSizeDefault 
WorkingBufferSizeMin 

◆ ZlibStreamFlavor

Zlib-specific flavor bits.

Enumerator
DEFLATE 
ZLIB 
GZIP