Syncfusion.Compression.Base Checksum calculator, based on Adler32 algorithm. Bits offset, used in adler checksum calculation. Lagrest prime, less than 65535 Count of iteration used in calculated of the adler checksumm. Updates checksum by calculating checksum of the given buffer and adding it to current value. Current checksum. Data byte array. Offset in the buffer. Length of data to be used from the stream. Generates checksum by calculating checksum of the given buffer. Data byte array. Offset in the buffer. Length of data to be used from the stream. Reader, that reads stream with compressed data Mask for compression method to be decoded from 16-bit header. Mask for compression info to be decoded from 16-bit header. Mask for check bits to be decoded from 16-bit header. Mask for dictionary presence to be decoded from 16-bit header. Mask for compression level to be decoded from 16-bit header. Maximum size of the data window. Maximum length of the repeatable block. End of the block sign. Minimal length code. Maximal length code. Maximal distance code. Minimum count of repetions. Bits, that responds for different repetion modes. Length bases. Length extended bits count. Distance bases. Distance extanded bits count. Input stream. Currently calculated checksum, based on Adler32 algorithm. Currently read 4 bytes. Count of bits that are in buffer. Temporary buffer. 32k buffer for unpacked data. No wrap mode. Window size, can not be larger than 32k. Current position in output stream. Current in-block position can be extracted by applying Int16.MaxValue mask. Data length. Current in-block position can be extracted by applying Int16.MaxValue mask. Sign of uncompressed data reading. Size of the block with uncompressed data. Specifies wheather next block can to be read. Reading can be denied because the header of the last block have been read. Specifies wheather user can read more data from stream. Current lengths huffman tree. Current distances huffman tree. Specifies wheather checksum has been read. TODO: place correct comment here Creates new reader for streams with compressed data. Resets current checksum to 1. Updates checksum by calculating checksum of the given buffer and adding it to current value. Data byte array. Offset in the buffer. Length of data to be used from the stream. Discards left-most partially used byte. Reads array of bytes. Output buffer. Offset in output buffer. Length of the data to be read. Count of bytes actually read to the buffer. Fill`s empty parts of the buffer. Reads specified count of bits without adjusting position. Count of bits to be read. Read value. Skips specified count of bits. Count of bits to be skipped. Reads specified count of bits from stream. Count of bits to be read. TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here Reads ZLib header with compression method and flags. TODO: place correct comment here TODO: place correct comment here Reades dynamic huffman codes from block header. Literals/Lengths tree. Distances tree. Reads and decodes block of data. True if buffer was empty and new data was read, otherwise - False. Decodes huffman codes. True if some data was read. Reads data to buffer. Output buffer for data. Offset in output data. Length of the data to be read. Count of bytes actually read. GET count of bits available Get count of full bytes available. Compression level. Pack without compression Use high speed compression, reduce of data size is low Something middle between normal and BestSpeed compressions Use normal compression, middle between speed and size Pack better but require a little more time Use best compression, slow enough Represents the compressed stream writer Start template of the zlib header. Memory usage level. Size of the pending buffer. Size of the buffer for the huffman encoding. Length of the literal alphabet(literal+lengths). Distances alphabet length. Length of the code-lengths tree. Code of the symbol, than means the end of the block. Maximum window size. Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Internal compression engine constant Output stream. Pending buffer for writing. Length of the unflushed data. Bits cache for pending buffer. Count of bits in pending buffer cache. If true, no zlib header will be written to the stream. Current checksum. Current compression level. Current tree for literals. Current tree for distances. Current tree for code lengths. Current position in literals and distances buffer. Recorded literals buffer. Recorded distances buffer. Count of the extra bits. Static array of the literal codes. Static array of the lengths of the literal codes. Static array of the distance codes. Static array of the lengths of the distance codes. If true, no futher writings can be performed. Current hash. Hash m_HashHead. Previous hashes. Start of the matched part. Length of the matched part. Previous match available. Start of the data window. String start in data window. Lookahead. Data window. Maximum chain length. Maximum distance of the search with "lazy" algotithm. Nice length of the block. Good length of the block. Current compression function. Current block of the data to be compressed. Total count of bytes, that were compressed. Offset in the input buffer, where input starts. Offset in the input buffer, where input ends. If true, stream will be closed after the last block. Initializes statical data for huffman compression. Initializes compressor and writes ZLib header if needed. Output stream. If true, ZLib header and checksum will not be written. Compression level. If true, output stream will be closed after the last block has been written. Initializes compressor and writes ZLib header if needed. Compression level is set to normal. Output stream. If true, ZLib header and checksum will not be written. If true, output stream will be closed after the last block has been written. Initializes compressor and writes ZLib header. Output stream. Compression level. If true, output stream will be closed after the last block has been written. Initializes compressor and writes ZLib header. Output stream. If true, output stream will be closed after the last block has been written. Compresses data and writes it to the stream. Data to compress offset in data array length of data to compress True - write last compress block in stream, otherwise False Writes ZLib header to stream. Fill the window Slides current window, and data, associated with it. Updates hash. Inserts string to the hash. Searches for the longest match. Store data without compression. Compress with a maximum speed. Compress, using maximum compression level. CompressData drives actual compression of data Reset internal state Calculates length code from length. Length. Length code. Calculates distance code from distance. Distance. Distance code. Write all trees to pending buffer Compress current buffer writing data to pending buffer Flush block to output with no compression Data to write Index of first byte to write Count of bytes to write True if this is the last block Flush block to output with compression Data to flush Index of first byte to flush Count of bytes to flush True if this is the last block Add literal to buffer. Value indicating internal buffer is full Add distance code and length to literal and distance trees Distance code Length Value indicating if internal buffer is full write a byte to buffer value to write Write a short value to buffer LSB first value to write write an integer LSB first value to write Write a block of data to buffer data to write offset of first byte to write number of bytes to write Align internal buffer on a byte boundary Write bits to internal buffer source of bits number of bits to write Write a short value to internal buffer most significant byte first value to write Flushes the pending buffer into the given output array. If the output array is to small, only a partial flush is done. Flushes fully recorded bytes to buffer array. Count of bytes, added to buffer. Convert internal buffer to byte array. Buffer is empty on completion converted buffer contents contents Total data processed. Return true if input is needed Checks, wheather huffman compression buffer is full. True if buffer is full. The number of bits written to the buffer Indicates if buffer has been flushed Type of the block. Data simply stored as is An option to use Fixed Huffman tree codes An option to use Dynamically built Huffman codes Represents the Huffman Tree. Frequences of the codes. Codes itself. Bit counts, needed to encode different codes. Count of codes with some lengths. Index - length, value - count. TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here Data compressor. Create a new Huffman tree Resets all code data in tree. Writes code to the compressor output stream. Code to be written. Checks wheather tree is empty. If tree is not empty, then exception will be raised. Specifies new arrays of codes and their lengths. Array of codes. Array of code lengths. Calculates codes from their frequences. Build tree with lengths. Builds tree. Calculates length of the compressed data. Count of bits, the data will occupy. Calculates code frequences. Tree. Writes tree to output stream. Tree to be written. Length of the tree. Lengths of codes in tree. Code frequences. Huffman tree, used for decompression. Maximum count of bits. Build huffman tree. Huffman tree for encoding and decoding lengths. huffman tree for encoding and decoding distances. Generates fixed huffman trees. Creates huffman tree. Prepares data for generating huffman tree. Array of counts of each code length. Numerical values of the smallest code for each code length. Array of code lengths. Calculated tree size. Code. Generates huffman tree. Array of counts of each code length. Numerical values of the smallest code for each code length. Precalculated code. Array of code lengths. Calculated size of the tree. Generated tree. Builds huffman tree from array of code lengths. Array of code lengths. Reads and decompresses one symbol. GET huffman tree for encoding and decoding lengths. GET huffman tree for encoding and decoding distances. Utility Class Bit-indexes for reversing. Code lengths for the code length alphabet. Reverses bit. Implemenation of IFileNamePreprocessor interface that simply removes some string from the name start and converts all \ characters into /. Preprocesses file name before ZipArchiveItem saving. Used to convert full item path into local one. Somehow converts full path into name that will be stored in the zip archive. Name to process. Converted name. String to remove from the name start. Initializes new instance of the name preprocessor. String to remove from the name start. Somehow converts full path into name that will be stored in the zip archive. Name to process. Converted name. Class contains all constants that are required by ZipArchive. Zip header signature. Number of bytes in HeaderSignature constant. Buffer size. Version needed to extract. Version made by. Size of the short value in bytes. Size of the int value in bytes. Central header signature. End of central directory signature. Initial value for CRC-32 evaluation. Offset to the size field in the End of central directory record. Start byte of the Header signature. Default constructor to prevent users from creating instances of this class. The kind of compression used for an entry in an archive The file is stored (no compression). The file is Shrunk. The file is Reduced with compression factor 1. The file is Reduced with compression factor 2. The file is Reduced with compression factor 3. The file is Reduced with compression factor 4. The file is Imploded. Reserved for Tokenizing compression algorithm. The file is Deflated. Enhanced Deflating using Deflate64(tm). PKWARE Data Compression Library Imploding (old IBM TERSE). File is compressed using BZIP2 algorithm. LZMA (EFS). File is compressed using IBM TERSE (new). IBM LZ77 z Architecture (PFS). PPMd version I, Rev 1. General purpose bit flag. If this bit is set, the fields crc-32, compressed size and uncompressed size are set to zero in the local header. The correct values are put in the data descriptor immediately following the compressed data. (Note: PKZIP version 2.04g for DOS only recognizes this bit for method 8 compression, newer versions of PKZIP recognize this bit for any compression method.) Language encoding flag (EFS). If this bit is set, the filename and comment fields for this file must be encoded using UTF-8. Class used for implementing Advanced Encryption Standard algorithm. block size in 32-bit words. Always 4 for AES. (128 bits). key size in 32-bit words. 4, 6, 8. (128, 192, 256 bits). number of rounds. 10, 12, 14. the seed key. size will be 4 * keySize . Substitution box inverse Substitution box key schedule array. Round constants State matrix AES key size Salt value Message Authentication Code Key Stored Message Authentication Code Computed Message Authentication Code Encryption Key Password verifier Password No of keyBytes No of saltBytes Initiates Aes Initializes a new instance of the Aes class. Key size. Key bytes Encipher 16 bit input 16 bit Input Output value Decipher 16-bit input SetNbNkNr() Keysize Building S-box Building Inverse S-box Builds Rotation array Adds rounf Key No of Rounds SubBytes InvSubBytes ShiftRows() InvShiftRows() MixColumns InvMixColumns Key Expansion Subword Word resulted word Rotates word Input Result Dump Dump key. Dump two by two. Generates a key for Encryption and Decryption Generates Message Authentication Code data used for MAC Compares two bytes arrays First byte array Second byte array true if two arrays are same Set key and salt lengths for AES key Decrypt the cipherData Encrypted data Decrypted Encrypt the plain data Data needs to be encrypted Encrypted data Counter Mode Encryption Encrypted data Decrypted data to get AES encryption Key Possible key sizes. 128-bit. 192-bit. 256-bit. Implementation Rfc2898Key generation Block Number Rfc Buffer End Offset No of Iterations Salt Value Start Offset Password BlockSize for SHA1 buffer Inner buffer Outer buffer Indicates whether needs hash Key Value Buffer No of hash State of SHA1 Expanded array HMAC hash value SHA1 hash value Constructor Password salt value to get key No of iteration used Constructor Password salt value to get key No of iteration used Creates a byte array for input Input Converted byte array for input Derives key key Generates the byte array based on the given length Length of the array Byte array Initializes the RFC to initial state Updates the m_inner and m_outer arrays Initializes the key value Computes hash code for the given data input data return hash in bytes Computes hash for the specified region from input for the given offset and copies the data to the output from the given offset Input array input Offset Length Output array output Offset Computes hash for the specified region from input for the given offset. Input array input Offset Length Clears all value rom arrays Initializes State values Computes hash for the given input data from the specified offset and Length Input start from the input array length needs to be hashed Computes the final hash code hash data Modifies the buffer using SHA input State array Blocks Expand the input array using SHA Input array Convert the BigEndian to DWORD Dword array No of digits Input block Convert Dword to BigEndian BigEndian array Output array no of digits Hash value Contains security Constants Password Verifier Length of AES Encryption Message Authentication Code Length of AES Encryption Password Length of ZipCrypto Encryption Password verifier value position of ZipCrypto 0 based index PKZip strong encryption header length AES compression method Block size for Rfc2898Key Password iteration Count for AES Aes Block Size AES encryption header constants ZipCrypto Encryption and Decryption Data stream Password Crc value Initial keys ZipCrc32 Constructor initializes Data stream and password Data Password Initializes Password and Crc value Password Crc value Initializes key and crc Update password Password Update key values byte needed for key update Initializes the keys using Password Password of the zip file Key Update using password Password of the zip file Data Encryption Plain data Cipher data Data Decryption Cipher data Plain data Decrypt the data using ZipCrypto Cipher data Plain data Encrypt the data using ZipCrypto Plain data Cipher data Generates the Encryption and Decryption Byte byte value Encryption types. No Encryption AES-128 bit encryption AES-192 bit encryption AES-256 bit encryption ZipCrypto Encryption Represents zip archive. Collection of archive items. Dictionary that allows quick search operations by item name. Key - item name, Value - corresponding ZipArchiveItem. File name preprocessor - object that converts full file/folder name into value that will be written into zip archive. Indicates whether we should check Crc value when reading item's data. Check is performed when user gets access to decompressed data for the first time. Default compression level. Compresses files using custom NetCompressor. Password for the zip File Type of the Encryption Creates compressor. Searches for integer value from the end of the stream. Stream to search value in. Value to locate. Maximum number of bytes to scan. Offset to the value, or -1 if it wasn't found. Extracts Int32 value from the stream. Stream to read data from. Extracted value. Extracts Int16 value from the stream. Stream to read data from. Extracted value. Extracts unsigned Int16 value from the stream. Stream to read data from. Extracted value. Adds empty directory to the archive. Directory path. Item that has been added. Adds specified file to the archive. File to add. Item that has been added. Adds new item to the archive Item name to add. Items data stream (can be null for empty files or folders). Indicates whether ZipArchive is responsible for stream closing. File attributes. Item that has been added. Adds existing item to the archive. Item to add. Added item. Removes item from the archive. Item name to remove. Removes item at the specified position. Item index to remove. Removes items that matches specified regular expression from the collection. Regular expression used to decide whether to remove item or not. Updates item inside existing archive. Item name to update. New data for the item. Indicates whether item should control its stream after update. Updates existing item or creates new one. Item to update or create. New data for the item. Indicates whether item should control its stream after update. File attributes for the item. This argument is only used if item is created. Updates item inside existing archive. Item name to update. New data for the item. Saves archive into specified file. Output file name. Saves archive into specified file. Output file name. Indicates whether we should create full path to the file if it doesn't exist. Saves archive into specified stream. Output stream. Indicates whether method should close stream after saving. Reads archive data from the file. Filename to read. Reads archive data from the stream. In the current implementation stream must be seekable and readable to extract data. Stream to read data from. Indicates whether method should close stream after reading. Clears all internal data. Searches for the item with specified name. Item to find. Zero-based item index if found; -1 otherwise. Searches for the item with specified name. Regular expression that defines item to find. Zero-based item index if found; -1 otherwise. Writes central directory to the stream. Stream to write data into. Writes End of central directory record into stream. Stream to write data into. Offset to the central directory start. Read central directory record from the stream. Stream to read from. Extracts items' data from the stream. Stream to read data from. Creates a copy of the current instance. A copy of the current instance. Protects the archived file with password using specified algorithm. Password to protect. Type of encryption algorithm to be used. Removes password from the compressed file. Opens an encrypted zip file with password. File Name. Password of the file to open. Reads archive data from the stream. In the current implementation stream must be seekable and readable to extract data. Stream to read data from. Indicates whether method should close stream after reading. Password for the file to open. A method to release allocated unmanaged resources. Class finilizer. Returns single archive item from the collection. Read-only. Zero-based index of the item to return. Single archive item from the collection. Returns item by its name. Null if item wasn't found. Read-only. Returns number of items inside archive. Read-only. Returns the items inside archive. Read-only. Gets / sets file name preprocessor - object that converts full file/folder name into value that will be written into zip archive. Gets / sets default compression level - compression level for new items. By default is equal to CompressionLevel.Best. Indicates whether we should check Crc value when reading item's data. Check is performed when user gets access to item's decompressed data for the first time. Uses custom compressed stream reader and writer. Returns the encryption algorithm used. Default value is NONE. Password for ZipFile Represents single item inside zip archive. It can be either folder or file. Name of the archive item. Compression method. Compression level. Crc. Stream with item's data. Compressed data size. Original (not compressed) data size. Indicates whether this item controls it's data stream. Indicates whether internal stream contains compressed data. Position of the size block inside local file header. Offset to the local header. General purpose bit flag. Item's external attributes. Indicates whether we should check crc value after decompressing item's data. Actual compression when Aes Encryption Default constructor. Creates new instance of the zip item. Name of the item (can be relative or absolute path). Stream data. Indicates whether item controls stream and must close it when item finish its work. Updates internal data stream. New stream to set. Indicates whether item should conrol new stream. This method saves item inside stream. Stream to save item into. Frees all internal resources and closes internal stream if necessary. This method writes file header into Central directory record. Stream to write data into. Converts current datetime to Windows format. Current Date and time. Value in Windows format. Read data from the stream based on the central directory. Stream to read data from, stream.Position must point at just after correct file header. Reads zipped data from the stream. Stream to read data from. Indicates whether we should check crc value after data decompression. Extracts compressed data from the stream. Stream to read data from. Extracts local header from the stream. Stream to read data from. Decompressed internal data if necessary. Writes local file header. Stream to write into. Writes zipped content inside stream. Stream to write into. Writes local file footer into stream. Stream to write into. Checks whether Crc field and stream data corresponds each other. Creates copy of the stream. Stream to copy. Created stream. Checks for Latin characters in the Unicode string. Input Unicode string. True if the Unicode string contain Latin characters. False otherwise. A method to release allocated unmanaged resources. Finilizer. Writes the header to Indicate the zip the file is encrypted. The data to write Data Encryption Data to be Encrypted Encrypted data Data Decryption Data needs to be decrypted Decrypted data Checks whether the file has unicode characters. Name of the file. Create a Random byte Array Length of the salt value salt value Name of the archive item. Compression method. Gets/sets item's compression level. Crc. Stream with item's data. Compressed data size. Original (not compressed) data size. Indicates whether this item controls it's data stream. Indicates whether internal stream contains compressed data. Gets / sets item's external attributes. Gets current OEM code page. Crc32 implementation used in zip archive to verify data correctness. Special pre-evaluated table used for faster crc evaluation. Evaluated when crcNumber was 0xEDB88320. EvaluateTable method can be used to evaluated table with different constant. Computes crc-32 value for the buffer. Buffer to compute crc-32 for. Offset to the data start. Data length in bytes. Initial crc-32 value. Updated crc-32 value. Computes crc-32 value for the stream. Stream to compute crc-32 for. Data length in bytes. Crc-32 value. Evaluates crc table. "Magic" number. Create table. Computes crc value for given number Number to calculate Crc value Initial crc-32 value Crc value This class represents exception type that is mostly raised when some problems with zip extraction/creation occurs. Initializes new instance of the exception class. Exception message. Initializes new instance of the stream. Initializes new instance of the stream. Clears all buffers for this stream and causes any buffered data to be written to the underlying device. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Sets the length of the current stream. The desired length of the current stream in bytes. Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies count bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. Gets a value indicating whether the current stream supports reading. Read-only. Gets a value indicating whether the current stream supports seeking. Read-only. Gets a value indicating whether the current stream supports writing. Read-only. Gets the length in bytes of the stream. Read-only. Gets or sets the position within the current stream. Read-only. This property returns stream with zipped content. It closes internal deflate stream, so you won't be able to write anything in int. Read-only. Returns computed crc32 value. Read-only. Returns size of the unzipped data. Read-only.