try { \
NCBI_REPORT_EXCEPTION_X(subcode, message, e); \
} catch (...) { \
} \
} \
catch (exception& e) { \
try { \
ERR_POST_X(subcode,
Error\
<< "[" << message \
<< "] Exception: " << e.what()); \
} catch (...) { \
} \
} \
catch (...) { \
try { \
ERR_POST_X(subcode,
Error\
<< "[" << message << "] Unknown exception"); \
} catch (...) { \
} \
} \
void Error(CExceptionArgs_Base &args)
Macro to catch and handle exceptions (from streams in the destructor)
Definition at line 87 of file compress.hpp.
◆ ERR_COMPRESSMacro to report errors in compression API.
Error codes for ERR_COMPRESS and OMPRESS_HANDLE_EXCEPTIONS are really a subcodes and current maximum value is defined in 'include/util/error_codes.hpp': NCBI_DEFINE_ERRCODE_X(Util_Compress, 210, max); For new values use 'max'+1 and update it there.
Definition at line 84 of file compress.hpp.
◆ Callback_WriteType of user-defined callback for extraction from archive.
It can be used to extract data from a single archive entry on the fly.
Definition at line 216 of file archive_.hpp.
◆ ELevel [1/2] ◆ ELevel [2/2] ◆ ETypeArchive entry type (the same as directory entry type).
Definition at line 115 of file archive_.hpp.
◆ TBZip2FlagsBitwise OR of EFlags.
Definition at line 73 of file bzip2.hpp.
◆ TEntries [1/2] ◆ TEntries [2/2]Define a list of entries.
Definition at line 397 of file tar.hpp.
◆ TFile [1/2] ◆ TFile [2/2]Define a list of files with sizes (directories and specials, such as devices, must be given with sizes of 0; symlinks – with the sizes of the names they are linking to).
Definition at line 402 of file tar.hpp.
◆ TFiles ◆ TFlags [1/3] ◆ TFlags [2/3] ◆ TFlags [3/3]Bitwise OR of EFlags.
Definition at line 368 of file tar.hpp.
◆ TLZOFlagsBitwise OR of EFlags.
Definition at line 165 of file lzo.hpp.
◆ TOwnership ◆ TPositionType to store stream positions.
Definition at line 633 of file compress.hpp.
◆ TTarModeBitwise OR of ETarModeBits.
Definition at line 89 of file tar.hpp.
◆ TZipFlags [1/2]Bitwise OR of EFlags.
Definition at line 127 of file zlib.hpp.
◆ TZipFlags [2/2] ◆ anonymous enum ◆ anonymous enum ◆ EAction [1/3]Action, performed on the archive.
Enumerator eUndefined eCreate eAppend eList eUpdate eExtract eTestDefinition at line 396 of file archive.hpp.
◆ EAction [2/3]Action types.
Enumerator eAction_ContinueContinue scanning to the next data chunk, if any.
eAction_StopStop scanning.
Definition at line 636 of file compress.hpp.
◆ EAction [3/3] Enumerator eUndefined eList eAppend eUpdate eExtract eTest eCreate eInternalDefinition at line 672 of file tar.hpp.
◆ EDecompressModeDecompression mode (see fAllowTransparentRead flag).
Enumerator eMode_UnknownNot known yet (decompress/transparent read)
eMode_DecompressGeneric decompression.
eMode_TransparentReadTransparent read, the data is uncompressed.
Definition at line 331 of file compress.hpp.
◆ EDirectionProcessing direction.
Enumerator eReadReading from archive.
eWriteWriting into archive.
Definition at line 192 of file archive_.hpp.
◆ EErrCode [1/3]Error types that CArchive API can generate.
Enumerator eUnsupported eMemory eUnsupportedEntryType eBadName eCreate eOpen eClose eList eExtract eAppend eWrite eBackup eRestoreAttrsDefinition at line 64 of file archive_.hpp.
◆ EErrCode [2/3] Enumerator eCompressionCompression/decompression error.
eCompressionFileCompression/decompression file error.
Definition at line 583 of file compress.hpp.
◆ EErrCode [3/3]Error types that file operations can generate.
Enumerator eUnsupportedTarFormat eUnsupportedEntryType eUnsupportedSource eNameTooLong eChecksum eBadName eCreate eOpen eRead eWrite eBackup eMemory eRestoreAttrsDefinition at line 110 of file tar.hpp.
◆ EFlags [1/6]General flags.
Enumerator fOverwriteAllow to overwrite destinations with entries from the archive.
fUpdateOnly update entries that are older than those already existing.
fBackupBackup destinations if they exist (all entries including dirs)
fEqualTypesIf destination entry exists, it must have the same type as source.
fPreserveOwnerCreate extracted files with the original ownership.
fPreserveModeCreate extracted files with the original permissions.
fPreserveTimePreserve date/times for extracted files Note, that some formats, as zip for example, store modification time only, so creation and last access time will be the same as modification time.
And even it can be a little bit off due a rounding errors.
fPreserveAllPreserve all file attributes.
fFollowLinksFollow symbolic links (instead of storing/extracting them)
fSkipUnsupportedSkip unsupported entries rather than making files out of them when extracting (the latter is the default POSIX requirement).
On adding entry of unsupported type to the archive it will be skipping also.
fDefaultDefault flags.
Definition at line 73 of file archive.hpp.
◆ EFlags [2/6]Compression/decompression flags.
Enumerator fAllowTransparentReadAllow transparent reading data from buffer/file/stream regardless is it compressed or not.
But be aware, if data source contains broken data and API cannot detect that it is compressed data, that you can get binary instead of decompressed data. By default this flag is OFF.
fAllowEmptyDataAllow to "compress/decompress" empty data.
The output compressed data will have header and footer only.
Definition at line 62 of file bzip2.hpp.
◆ EFlags [3/6]Compression/decompression flags.
Enumerator fAllowTransparentReadAllow transparent reading data from buffer/file/stream regardless is it compressed or not.
But be aware, if data source contains broken data and API cannot detect that it is compressed data, that you can get binary instead of decompressed data. By default this flag is OFF.
fAllowEmptyDataAllow to "compress/decompress" empty data.
Buffer compression functions starts to return TRUE instead of FALSE for zero-length input. And, if this flag is used together with fStreamFormat than the output will have header and footer only.
fChecksumAdd/check (accordingly to compression or decompression) the compressed data checksum.
A checksum is a form of redundancy check. We use the safe decompressor, but this can be not enough, because many data errors will not result in a compressed data violation.
fStreamFormatUse stream compatible format for data compression.
This flag have an effect for CompressBuffer/DecompressBuffer only. File and stream based compressors always use it by default. Use this flag with DecompressBuffer() to decompress data, compressed using streams, or compress data with CompressBuffer(), that can be decompressed using decompression stream.
Store file information like file name and file modification date of the compressed file into the file/stream.
Works only with fStreamFormat flag.
Definition at line 131 of file lzo.hpp.
◆ EFlags [4/6]General flags.
Enumerator fIgnoreZeroBlocksIgnore blocks of zeros in archive.
fFollowLinksFollow symbolic links (instead of storing/extracting them)
fOverwriteAllow to overwrite destinations with entries from the archive.
fUpdateOnly update entries that are older than those already existing.
fBackupBackup destinations if they exist (all entries including dirs)
fEqualTypesIf destination entry exists, it must have the same type as source.
fPreserveOwnerCreate extracted files with the original ownership.
fPreserveModeCreate extracted files with the original permissions.
fPreserveTimePreserve date/times for extracted files.
fPreserveAllPreserve all file attributes.
fKeepAbsolutePathPreserve absolute path instead of stripping the leadind slash('/')
fSparseUnsupportedDo not extract PAX GNU/1.0 sparse files (treat 'em as unsupported)
fSkipUnsupportedSkip unsupported entries rather than make files out of them when extracting (the latter is the default behavior required by POSIX)
fIgnoreUnreadableIgnore unreadable files/dirs (still warn them, but don't stop)
fLongNameSupplementAlways use OldGNU headers for long names (default:only when needed)
fDumpEntryHeaders fSlowSkipWithRead fIgnoreNameCaseIgnore case difference in names.
fConflictOverwriteConflict overwrite allowed for entries.
fStreamPipeThroughStream tar data through.
fTarfileNoTruncateDo not trim tar file size after append/update.
fStandardHeaderOnlySuppress NCBI signatures in entry headers.
fDefaultDefault flags.
Definition at line 304 of file tar.hpp.
◆ EFlags [5/6]Compression/decompression flags.
Enumerator fAllowTransparentReadAllow transparent reading data from buffer/file/stream regardless is it compressed or not.
But be aware, if data source contains broken data and API cannot detect that it is compressed data, that you can get binary instead of decompressed data. By default this flag is OFF. Note: zlib v1.1.4 and earlier have a bug in decoding. In some cases decompressor can produce output data on invalid compressed data. So, it is not recommended to use this flag with old zlib versions.
fAllowEmptyDataAllow to "compress/decompress" empty data.
Buffer compression functions starts to return TRUE instead of FALSE for zero-length input. And, if this flag is used together with fWriteGZipFormat than the output will have gzip header and footer only.
fCheckFileHeaderCheck (and skip) gzip file header on decompression stage.
fWriteGZipFormatUse gzip (.gz) file format to write into compression stream (the archive also can store file name and file modification date in this format).
Note: gzip file header and footer will be omitted by default if no input data is provided, and you will have empty output, that may not be acceptable to tools like gunzip and etc – in this case use fAllowEmptyData.
fAllowConcatenatedGZipAllow concatenated gzip files.
Multiple compressed files can be concatenated into one file. In this case, decompressor will try to extract all members at once. But note, that better compression can be usually obtained if all members are decompressed and then recompressed in a single step.
fGZipSet of flags for gzip file support. See each flag description above.
fRestoreFileAttrThis flag can be used only with DecompressFile[IntoDir]().
It allow to restore the original file name and/or time stamp stored in the file header, if present.
Definition at line 87 of file zlib.hpp.
◆ EFlags [6/6]Compression/decompression flags.
Enumerator fAllowTransparentReadAllow transparent reading data from buffer/file/stream regardless is it compressed or not.
But be aware, if data source contains broken data and API cannot detect that it is compressed data, that you can get binary instead of decompressed data. By default this flag is OFF. Note: zlib v1.1.4 and earlier have a bug in decoding. In some cases decompressor can produce output data on invalid compressed data. So, it is not recommended to use this flag with old zlib versions.
fAllowEmptyDataAllow to "compress/decompress" empty data.
Buffer compression functions starts to return TRUE instead of FALSE for zero-length input. And, if this flag is used together with fWriteGZipFormat than the output will have gzip header and footer only.
fCheckFileHeaderCheck (and skip) gzip file header on decompression stage.
fWriteGZipFormatUse gzip (.gz) file format to write into compression stream (the archive also can store file name and file modification date in this format).
Note: gzip file header and footer will be omitted by default if no input data is provided, and you will have empty output, that may not be acceptable to tools like gunzip and etc – in this case use fAllowEmptyData.
fAllowConcatenatedGZipAllow concatenated gzip files.
Multiple compressed files can be concatenated into one file. In this case, decompressor will try to extract all members at once. But note, that better compression can be usually obtained if all members are decompressed and then recompressed in a single step.
fGZipSet of flags for gzip file support. See each flag description above.
fRestoreFileAttrThis flag can be used only with DecompressFile[IntoDir]().
It allow to restore the original file name and/or time stamp stored in the file header, if present.
Definition at line 81 of file zlib_cloudflare.hpp.
◆ EFormat ◆ EHeader Enumerator eHeaderNone eHeaderAlways eHeaderCheckDefinition at line 121 of file reader_zlib.hpp.
◆ ELevelCompression level.
It is in range [0..9]. Increase of level might mean better compression and usualy greater time of compression. Usualy 1 gives best speed, 9 gives best compression, 0 gives no compression at all (if supported). eDefault value requests a compromise between speed and compression (according to developers of the corresponding compression algorithm).
Definition at line 142 of file compress.hpp.
◆ ELocationArchive location.
Enumerator eFileFile-based archive.
eFileStreamFile stream based archive (FILE*)
eMemoryMemory-based archive.
Definition at line 197 of file archive_.hpp.
◆ EMaskType [1/2] Enumerator eFullPathMask ePatternMaskDefinition at line 319 of file archive.hpp.
◆ EMaskType [2/2] Enumerator eExtractMaskexact for list or extract
eExcludeMaskpattern for all but test
Definition at line 379 of file tar.hpp.
◆ EModeFile open mode.
Enumerator eMode_ReadReading from compressed file.
eMode_WriteWriting compressed data to file.
Definition at line 371 of file compress.hpp.
◆ EOpenMode [1/2]Archive open mode.
Enumerator eNone eRO eWO eRWDefinition at line 388 of file archive.hpp.
◆ EOpenMode [2/2]Archive open mode and action.
Enumerator eNone eWO eRO eRWDefinition at line 666 of file tar.hpp.
◆ EOwnershipWhich of the objects (passed in the constructor) should be deleted on this object's destruction.
Enumerator fOwnNone fOwnReader fOwnAllDefinition at line 111 of file reader_zlib.hpp.
◆ EPosPosition type.
Enumerator ePos_Header ePos_DataDefinition at line 179 of file tar.hpp.
◆ EStatus [1/2]Type of the result of all basic functions.
Enumerator eStatus_SuccessEverything is fine, no errors occurred.
eStatus_EndOfDataSpecial case of eStatus_Success.
Logical end of (compressed) stream is detected, no errors occurred. All subsequent inquiries about data processing should be ignored.
eStatus_ErrorError has occurred. The error code can be acquired by GetErrorCode().
eStatus_OverflowOutput buffer overflow - not enough output space.
Buffer must be emptied and the last action repeated.
eStatus_RepeatSpecial value. Just need to repeat last action.
eStatus_UnknownSpecial value. Status is undefined.
Definition at line 467 of file compress.hpp.
◆ EStatus [2/2]I/O completion code.
Enumerator eFailure eSuccess eContinue eZeroBlock eEOFDefinition at line 683 of file tar.hpp.
◆ ESupportFeature [1/2] Enumerator eFeature_Type eFeature_AbsolutePath eFeature_FileStreamDefinition at line 371 of file archive.hpp.
◆ ESupportFeature [2/2]Supported features.
Enumerator eFeature_NoCompressionCheck if current compression method have a real support for eLevel_NoCompression, so it can store data without compression.
If this method of compression is not supported, the lowest supported level will be used instead, automatically.
Check if current compression have support for dictionaries.
Without support SetDictionary() always return FALSE.
Check if current compression have implementation for the EstimateCompressionBufferSize() method.
Without support it always return 0.
Definition at line 191 of file compress.hpp.
◆ ETarModeBitsTTarMode –.
Permission bits as defined in tar
Enumerator fTarSetUIDset UID on execution
fTarSetGIDset GID on execution
fTarStickyreserved (sticky bit)
fTarUReadread by owner
fTarUWritewrite by owner
fTarUExecuteexecute/search by owner
fTarGReadread by group
fTarGWritewrite by group
fTarGExecuteexecute/search by group
fTarOReadread by other
fTarOWritewrite by other
fTarOExecuteexecute/search by other
Definition at line 73 of file tar.hpp.
◆ EType [1/2] Enumerator eType_unknown eType_plain eType_zlibDefinition at line 56 of file reader_zlib.hpp.
◆ EType [2/2]Archive entry type.
Enumerator eFileRegular file.
eDirDirectory.
eSymLinkSymbolic link.
ePipePipe (FIFO)
eCharDevCharacter device.
eBlockDevBlock device.
eUnknownUnknown type.
eHardLinkHard link.
eVolHeaderVolume header.
ePAXHeaderPAX extended header.
eSparseFileGNU/STAR sparse file.
eGNULongNameGNU long name.
eGNULongLinkGNU long link.
Definition at line 162 of file tar.hpp.
◆ AddEntryFromFileSystem() [1/2]Add single entry to newly created archive from file system.
Implements IArchive.
Definition at line 499 of file archive_zip.cpp.
References _ASSERT, CDirEntry::eDir, CDirEntry::eFile, ICompression::eLevel_Default, info, MZ_DEFAULT_LEVEL, mz_zip_writer_add_file(), mz_zip_writer_add_mem_ex(), NULL, ZIP_HANDLE, and ZIP_THROW.
◆ AddEntryFromFileSystem() [2/2]Add single entry to newly created archive from file system.
Implemented in CArchiveZip.
◆ AddEntryFromMemory() [1/2] ◆ AddEntryFromMemory() [2/2]Add entry to newly created archive from memory buffer.
Implemented in CArchiveZip.
◆ Alloc() char * CDynamicCharArray::Alloc ( size_t size ) ◆ AllowEmptyData() [1/9] virtual bool CBZip2Compressor::AllowEmptyData ( ) const inlinevirtual ◆ AllowEmptyData() [2/9] virtual bool CBZip2Decompressor::AllowEmptyData ( ) const inlinevirtual ◆ AllowEmptyData() [3/9] virtual bool CLZOCompressor::AllowEmptyData ( ) const inlinevirtual ◆ AllowEmptyData() [4/9] virtual bool CLZODecompressor::AllowEmptyData ( ) const inlinevirtual ◆ AllowEmptyData() [5/9] virtual bool CZipCompressor::AllowEmptyData ( ) const inlinevirtual ◆ AllowEmptyData() [6/9] virtual bool CZipDecompressor::AllowEmptyData ( ) const inlinevirtual ◆ AllowEmptyData() [7/9] virtual bool CZipCloudflareCompressor::AllowEmptyData ( ) const inlinevirtual ◆ AllowEmptyData() [8/9] virtual bool CZipCloudflareDecompressor::AllowEmptyData ( ) const inlinevirtual ◆ AllowEmptyData() [9/9] virtual bool CCompressionProcessor::AllowEmptyData ( ) const pure virtual ◆ Append() [1/3] ◆ Append() [2/3]Append an entry at the end of the archive that already exists.
Appended entry can be either a file, a directory, a symbolic link, a device special file (block or character), or a FIFO special file, subject to any exclusions as set by SetMask() with eExcludeMask. The name is taken with respect to the base directory, if any set.
Adding a directory results in all its files and subdirectories (subject out what has been added.
Note that the final name of an entry may not contain embedded '..'. Leading slash in the absolute paths will be retained. The names of all appended entries will be converted to Unix format (that is, to have only forward slashes in the paths, and drive letter, if any on MS-Windows, stripped). All entries will be added at the logical end (not always EOF) of the archive, when appending to a non-empty one.
Definition at line 820 of file tar.hpp.
References CTar::eAppend, CTar::x_Append(), and CTar::x_Open().
◆ Append() [3/3]Append an entry to the archive.
Appended entry can be either a file, directory, symbolic link or etc. Each archive format have its own list of supported entry types. The name is taken with respect to the base directory, if any set. Adding a directory results in all its files and subdirectories to get added (examine the return value to find out what has been added). The names of all appended entries will be converted to Unix format (only forward slashes in the paths, and drive letter, if any on MS-Windows, stripped).
Definition at line 451 of file archive.cpp.
References ARCHIVE_CHECK, CArchive::eAppend, CArchive::x_Append(), and CArchive::x_Open().
◆ AppendEntry() ◆ AppendFileFromMemory()Append a single file entry to the created archive using data from memory buffer.
These function assign the current local time to added entry.
Definition at line 461 of file archive.cpp.
References ARCHIVE, ARCHIVE_CHECK, ARCHIVE_THROW, buf, CArchive::eAppend, CArchive::eFeature_AbsolutePath, CDirEntry::eFile, entries, CArchive::eZip, CArchive::HaveSupport(), kEmptyStr, CArchiveEntryInfo::m_Comment, CArchive::m_Current, CArchive::m_Format, CArchiveEntryInfo::m_Name, CArchiveEntryInfo::m_Type, NCBI_THROW, s_ToArchiveName(), and CArchive::x_Open().
◆ At() char* CDynamicCharArray::At ( size_t pos ) const inline ◆ CArchive() [1/2] ◆ CArchive() [2/2] CArchive::CArchive ( EFormat format ) protected ◆ CArchiveCompressionFileStream() [1/3] ◆ CArchiveCompressionFileStream() [2/3] CArchiveCompressionFileStream::CArchiveCompressionFileStream ( EFormat format, FILE * filestream ) ◆ CArchiveCompressionFileStream() [3/3] CArchiveCompressionFileStream::CArchiveCompressionFileStream ( EFormat format, int fd )Constructor for stream-based archive.
Definition at line 1261 of file archive.cpp.
References _T_XCSTRING, ARCHIVE_THROW, CArchiveCompressionFileStream::Create(), IArchive::eFileStream, CArchiveCompressionFileStream::m_fd, CArchiveCompressionFileStream::m_FileStream, CArchive::m_Location, NcbiSys_dup, and NcbiSys_fdopen.
◆ CArchiveEntryInfo() CArchiveEntryInfo::CArchiveEntryInfo ( ) inline ◆ CArchiveFile() [1/2] ◆ CArchiveFile() [2/2] ◆ CArchiveMemory() [1/2] ◆ CArchiveMemory() [2/2] CArchiveMemory::CArchiveMemory ( EFormat format, const void * buf =NULL
, size_t buf_size = 0
)
Constructor for memory-based archive.
Definition at line 1150 of file archive.cpp.
References IArchive::eMemory, CArchive::fDefault, CArchiveMemory::m_Buf, CArchiveMemory::m_BufSize, CArchive::m_Flags, CArchiveMemory::m_InitialAllocationSize, CArchive::m_Location, and ncbi::grid::netcache::search::fields::size.
◆ CArchiveZip() CArchiveZip::CArchiveZip ( void ) inline ◆ CBZip2Compression() [1/2]Private copy constructor to prohibit copy.
◆ CBZip2Compression() [2/2] ◆ CBZip2CompressionFile() [1/3]Private copy constructor to prohibit copy.
◆ CBZip2CompressionFile() [2/3]Constructor.
Automatically calls Open() with given file name, mode and compression level.
Conventional constructor.
◆ CBZip2Compressor() ◆ CBZip2Decompressor() CBZip2Decompressor::CBZip2Decompressor ( TBZip2Flags flags =0
)
Constructor.
◆ CBZip2StreamCompressor() [1/3]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 531 of file bzip2.hpp.
◆ CBZip2StreamCompressor() [2/3] ◆ CBZip2StreamCompressor() [3/3]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 542 of file bzip2.hpp.
◆ CBZip2StreamDecompressor() [1/2]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 579 of file bzip2.hpp.
◆ CBZip2StreamDecompressor() [2/2] ◆ CCompression() ◆ CCompressionDictionary() [1/3] CCompressionDictionary::CCompressionDictionary ( const string & filename ) ◆ CCompressionDictionary() [2/3]Use dictionary data from a memory buffer.
CCompressionDictionary can take an ownership of allocated memory, so it can be automatically deallocated when not needed anymore.
Definition at line 282 of file compress.cpp.
◆ CCompressionDictionary() [3/3] CCompressionDictionary::CCompressionDictionary ( istream & is, size_t size ) ◆ CCompressionFile() [1/2] CCompressionFile::CCompressionFile ( const string & path, EMode mode, size_t compression_in_bufsize =0
, size_t compression_out_bufsize = 0
) ◆ CCompressionFile() [2/2] CCompressionFile::CCompressionFile ( void )
Definition at line 203 of file compress.cpp.
◆ CCompressionProcessor() CCompressionProcessor::CCompressionProcessor ( void ) ◆ CDynamicCharArray() [1/3] ◆ CDynamicCharArray() [2/3] CDynamicCharArray::CDynamicCharArray ( size_t size )Definition at line 46 of file reader_zlib.cpp.
◆ CDynamicCharArray() [3/3] CDynamicCharArray::CDynamicCharArray ( void ) inlineDefinition at line 82 of file reader_zlib.hpp.
◆ Checkpoint() [1/2]Return false to skip the current entry when processing.
Note that the callback can encounter multiple entries of the same file in case the archive has been updated (so only the last occurrence is the actual copy of the file when extracted).
Definition at line 426 of file archive.hpp.
Referenced by CArchive::x_AppendEntry(), and CArchive::x_ReadAndProcess().
◆ Checkpoint() [2/2]Return false to skip the current entry when reading; the return code gets ignored when writing.
Note that the callback can encounter multiple entries of the same file in case the archive has been updated (so only the last occurrence is the actual copy of the file when extracted).
Reimplemented in CTarCheckpointed.
Definition at line 660 of file tar.hpp.
Referenced by CTar::x_ReadAndProcess(), and CTar::x_WriteEntryInfo().
◆ Close() [1/10] void CArchive::Close ( void ) virtual ◆ Close() [2/10] void CArchiveCompressionFileStream::Close ( void ) virtual ◆ Close() [3/10] virtual bool CBZip2CompressionFile::Close ( void ) virtualClose compressed file.
Flushes all pending output if necessary, closes the compressed file.
Implements CCompressionFile.
◆ Close() [4/10] bool CLZOCompressionFile::Close ( void ) virtualClose compressed file.
Flushes all pending output if necessary, closes the compressed file.
Implements CCompressionFile.
Definition at line 1049 of file lzo.cpp.
References CCompressionFile::eMode_Read, CCompressionStream::eRead, CCompressionStream::eWrite, CCompressionIOStream::Finalize(), CLZOCompressionFile::GetStreamError(), CLZOCompressionFile::m_File, CLZOCompressionFile::m_Mode, and CLZOCompressionFile::m_Stream.
Referenced by CLZOCompression::CompressFile(), CLZOCompression::DecompressFile(), CLZOCompressionFile::Open(), and CLZOCompressionFile::~CLZOCompressionFile().
◆ Close() [5/10] void CTar::Close ( void ) inlineClose the archive making sure all pending output is flushed.
Normally, direct call of this method need _not_ intersperse successive archive manipulations by other methods, as they open and close the archive automagically as needed. Rather, this call is to make sure the archive is complete earlier than it otherwise usually be done automatically in the destructor of the CTar object.
Definition at line 814 of file tar.hpp.
References CTar::x_Close(), and CTar::x_Flush().
Referenced by CDownloadJob::x_DownloadAndExtract().
◆ Close() [6/10] virtual bool CZipCompressionFile::Close ( void ) virtualClose compressed file.
Flushes all pending output if necessary, closes the compressed file.
Implements CCompressionFile.
◆ Close() [7/10] virtual bool CZipCloudflareCompressionFile::Close ( void ) virtualClose compressed file.
Flushes all pending output if necessary, closes the compressed file.
Implements CCompressionFile.
◆ Close() [8/10] void CArchiveZip::Close ( void ) virtualClose the archive.
For file-based archives it flushes all pending output. All added entries will appears in the archive only after this call. This method will be automatically called from destructor if you forgot to call it directly. But note, that if the archive is created in memory, it will be lost. You should call FinalizeMemory() to get data before closing archive.
Implements IArchive.
Definition at line 238 of file archive_zip.cpp.
References _ASSERT, IArchive::eFile, IArchive::eFileStream, IArchive::eRead, IArchive::eWrite, IArchive::m_Location, IArchive::m_Mode, mz_zip_reader_end(), mz_zip_writer_end(), mz_zip_writer_finalize_archive(), ZIP_CHECK, ZIP_DELETE, ZIP_HANDLE, and ZIP_THROW.
Referenced by CArchiveZip::~CArchiveZip().
◆ Close() [9/10] virtual void IArchive::Close ( void ) pure virtualClose the archive.
For file-based archives it flushes all pending output. All added entries will appears in the archive only after this call. This method will be automatically called from destructor if you forgot to call it directly. But note, that if the archive is created in memory, it will be lost. You should call FinalizeMemory() to get it.
Implemented in CArchiveZip.
◆ Close() [10/10] virtual bool CCompressionFile::Close ( void ) pure virtual ◆ CLZOBuffer() [1/2]Private copy constructor to prohibit copy.
◆ CLZOBuffer() [2/2] CLZOBuffer::CLZOBuffer ( void ) ◆ CLZOCompression() [1/2]Private copy constructor to prohibit copy.
◆ CLZOCompression() [2/2] ◆ CLZOCompressionFile() [1/3]Private copy constructor to prohibit copy.
◆ CLZOCompressionFile() [2/3] ◆ CLZOCompressionFile() [3/3]Conventional constructor.
Definition at line 887 of file lzo.cpp.
◆ CLZOCompressor() ◆ CLZODecompressor() CLZODecompressor::CLZODecompressor ( TLZOFlags flags ) ◆ CLZOStreamCompressor() [1/3]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 787 of file lzo.hpp.
◆ CLZOStreamCompressor() [2/3]Full constructor.
Definition at line 775 of file lzo.hpp.
◆ CLZOStreamCompressor() [3/3]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 798 of file lzo.hpp.
◆ CLZOStreamDecompressor() [1/2]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 838 of file lzo.hpp.
◆ CLZOStreamDecompressor() [2/2] CLZOStreamDecompressor::CLZOStreamDecompressor ( streamsize in_bufsize, streamsize out_bufsize, CLZOCompression::TLZOFlags flags =0
) inline
Full constructor.
Definition at line 827 of file lzo.hpp.
◆ CNlmZipBtRdr() [1/2] ◆ CNlmZipBtRdr() [2/2] ◆ CNlmZipReader() [1/2] ◆ CNlmZipReader() [2/2] ◆ CompressBlock() int CLZOCompression::CompressBlock ( const void * src_buf, size_t src_len, void * dst_buf, size_t * dst_len ) protectedCompress block of data.
Definition at line 354 of file lzo.cpp.
References F_ISSET, CLZOCompression::fChecksum, AutoArray< X, Del >::get(), CLZOCompression::GetLZOErrorDescription(), CLZOCompression::m_Param, CLZOCompression::m_WorkMem, n, NULL, CCompression::SetError(), and CCompressionUtil::StoreUI4().
Referenced by CLZOCompression::CompressBlockStream(), and CLZOCompression::CompressBuffer().
◆ CompressBlockStream() int CLZOCompression::CompressBlockStream ( const void * src_buf, size_t src_len, void * dst_buf, size_t * dst_len ) protected ◆ CompressBuffer() [1/5] virtual bool CBZip2Compression::CompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) virtualCompress data in the buffer.
Altogether, the total size of the destination buffer must be little more then size of the source buffer.
Implements ICompression.
Referenced by CT_CompressBuffer().
◆ CompressBuffer() [2/5] bool CLZOCompression::CompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) virtualCompress data in the buffer.
Implements ICompression.
Definition at line 490 of file lzo.cpp.
References _VERIFY, CLZOCompression::CompressBlock(), CLZOCompression::CompressBlockStream(), ERR_COMPRESS, CLZOCompression::EstimateCompressionBufferSize(), F_ISSET, CLZOCompression::fAllowEmptyData, CLZOCompression::FormatErrorMessage(), CLZOCompression::fStreamFormat, CCompression::GetErrorCode(), CCompression::GetFlags(), CLZOCompression::GetLevel(), CLZOCompression::GetLZOErrorDescription(), CLZOCompression::InitCompression(), kMax_UInt, CLZOCompression::m_BlockSize, min(), n, NULL, s_WriteLZOHeader(), CCompression::SetError(), and CCompressionUtil::StoreUI4().
Referenced by CChangePhyloTreeCommand::CChangePhyloTreeCommand(), and CT_CompressBuffer().
◆ CompressBuffer() [3/5] virtual bool CZipCompression::CompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) virtualCompress data in the buffer.
Implements ICompression.
Referenced by CId2Compressor::CompressChunk(), CT_CompressBuffer(), and CPdfObject::x_PrintTo().
◆ CompressBuffer() [4/5] virtual bool CZipCloudflareCompression::CompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) virtualCompress data in the buffer.
Implements ICompression.
◆ CompressBuffer() [5/5] virtual bool ICompression::CompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) pure virtual ◆ CompressCache() bool CLZOCompressor::CompressCache ( void ) protected ◆ CompressFile() [1/5]Compress file.
Implements ICompression.
◆ CompressFile() [2/5]Compress file.
Implements ICompression.
Definition at line 730 of file lzo.cpp.
References CLZOCompressionFile::Close(), CCompressionFile::eMode_Write, CLZOCompression::GetBlockSize(), CCompression::GetErrorCode(), CCompression::GetErrorDescription(), CCompression::GetFlags(), CLZOCompression::GetLevel(), CLZOCompressionFile::Open(), CLZOCompression::SetBlockSize(), CCompression::SetError(), CCompression::SetFlags(), and CCompression::x_CompressFile().
◆ CompressFile() [3/5]Compress file.
Implements ICompression.
◆ CompressFile() [4/5]Compress file.
Implements ICompression.
◆ CompressFile() [5/5] ◆ Create() [1/5] void CArchiveMemory::Create ( size_t initial_allocation_size ) virtualCreate a new empty archive in memory.
Definition at line 1170 of file archive.cpp.
References ARCHIVE_CHECK, CArchive::eCreate, CArchiveMemory::m_Buf, CArchiveMemory::m_InitialAllocationSize, CArchiveMemory::m_OwnBuf, NULL, AutoArray< X, Del >::reset(), and CArchive::x_Open().
◆ Create() [2/5] void CArchive::Create ( void ) virtual ◆ Create() [3/5] void CArchiveMemory::Create ( void ) virtual ◆ Create() [4/5] void CArchiveCompressionFileStream::Create ( void ) virtual ◆ Create() [5/5] void CTar::Create ( void ) inline ◆ CreateFile() [1/2] void CArchiveZip::CreateFile ( const string & filename ) virtualCreate new archive file.
Implements IArchive.
Definition at line 130 of file archive_zip.cpp.
References IArchive::eFile, IArchive::eWrite, IArchive::m_Location, IArchive::m_Mode, mz_zip_writer_init_file(), ZIP_DELETE, ZIP_HANDLE, ZIP_NEW, and ZIP_THROW.
◆ CreateFile() [2/2] virtual void IArchive::CreateFile ( const string & filename ) pure virtual ◆ CreateFileStream() [1/2] void CArchiveZip::CreateFileStream ( FILE * filestream ) virtualCreate new archive file on top of a FILE stream.
Implements IArchive.
Definition at line 144 of file archive_zip.cpp.
References IArchive::eFileStream, IArchive::eWrite, IArchive::m_Location, IArchive::m_Mode, mz_zip_writer_init_cfile(), ZIP_DELETE, ZIP_HANDLE, ZIP_NEW, and ZIP_THROW.
◆ CreateFileStream() [2/2] virtual void IArchive::CreateFileStream ( FILE * filestream ) pure virtualCreate new archive file on top of a FILE stream.
Implemented in CArchiveZip.
◆ CreateMemory() [1/2] void CArchiveZip::CreateMemory ( size_t initial_allocation_size =0
) virtual
Create new archive located in memory.
Implements IArchive.
Definition at line 158 of file archive_zip.cpp.
References IArchive::eMemory, IArchive::eWrite, IArchive::m_Location, IArchive::m_Mode, mz_zip_writer_init_heap(), ZIP_DELETE, ZIP_HANDLE, ZIP_NEW, and ZIP_THROW.
◆ CreateMemory() [2/2] virtual void IArchive::CreateMemory ( size_t initial_allocation_size =0
) pure virtual
Create new archive located in memory.
Implemented in CArchiveZip.
◆ CTar() [1/3] CTar::CTar ( CNcbiIos & stream, size_t blocking_factor =20
)
Stream version does not at all use stream positioning and so is safe on non-positionable streams, like pipes/sockets (or magnetic tapes :-I).
Definition at line 1327 of file tar.cpp.
References CTar::x_Init().
◆ CTar() [2/3] ◆ CTar() [3/3] CTar::CTar ( const string & filename, size_t blocking_factor =20
) ◆ CTarEntryInfo() CTarEntryInfo::CTarEntryInfo ( Uint8 pos = 0
) inlineprotected ◆ CTarUserEntryInfo() ◆ CZipCloudflareCompression() [1/2]
Private copy constructor to prohibit copy.
◆ CZipCloudflareCompression() [2/2]Constructor.
Private copy constructor to prohibit copy.
◆ CZipCloudflareCompressionFile() [2/3]Constructor.
Automatically calls Open() with given file name, mode and compression level.
Conventional constructor.
◆ CZipCloudflareCompressor() ◆ CZipCloudflareDecompressor() CZipCloudflareDecompressor::CZipCloudflareDecompressor ( TZipFlags flags =0
)
Constructor.
◆ CZipCloudflareStreamCompressor() [1/3]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 772 of file zlib_cloudflare.hpp.
◆ CZipCloudflareStreamCompressor() [2/3] ◆ CZipCloudflareStreamCompressor() [3/3]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 783 of file zlib_cloudflare.hpp.
◆ CZipCloudflareStreamDecompressor() [1/2]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 825 of file zlib_cloudflare.hpp.
◆ CZipCloudflareStreamDecompressor() [2/2] ◆ CZipCompression() [1/2]Private copy constructor to prohibit copy.
◆ CZipCompression() [2/2]Constructor.
Private copy constructor to prohibit copy.
◆ CZipCompressionFile() [2/3]Constructor.
Automatically calls Open() with given file name, mode and compression level.
Conventional constructor.
◆ CZipCompressor() ◆ CZipDecompressor() CZipDecompressor::CZipDecompressor ( TZipFlags flags =0
)
Constructor.
◆ CZipStreamCompressor() [1/3]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 778 of file zlib.hpp.
◆ CZipStreamCompressor() [2/3]Full constructor.
Definition at line 766 of file zlib.hpp.
◆ CZipStreamCompressor() [3/3]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 789 of file zlib.hpp.
◆ CZipStreamDecompressor() [1/2]Conventional constructor.
Uses default buffer sizes for I/O, that can be not ideal for some scenarios.
Definition at line 831 of file zlib.hpp.
◆ CZipStreamDecompressor() [2/2] CZipStreamDecompressor::CZipStreamDecompressor ( streamsize in_bufsize, streamsize out_bufsize, CZipCompression::TZipFlags flags =0
) inline
Full constructor.
Definition at line 820 of file zlib.hpp.
◆ DecompressBlock() int CLZOCompression::DecompressBlock ( const void * src_buf, size_t src_len, void * dst_buf, size_t * dst_len, TLZOFlags flags ) protected ◆ DecompressBlockStream() int CLZOCompression::DecompressBlockStream ( const void * src_buf, size_t src_len, void * dst_buf, size_t * dst_len, TLZOFlags flags, size_t * processed ) protected ◆ DecompressBuffer() [1/5] virtual bool CBZip2Compression::DecompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) virtualDecompress data in the buffer.
Implements ICompression.
Referenced by CT_DecompressBuffer().
◆ DecompressBuffer() [2/5] bool CLZOCompression::DecompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) virtualDecompress data in the buffer.
Implements ICompression.
Definition at line 586 of file lzo.cpp.
References CLZOCompression::DecompressBlock(), CLZOCompression::DecompressBlockStream(), ERR_COMPRESS, F_ISSET, CLZOCompression::fAllowEmptyData, CLZOCompression::fAllowTransparentRead, CLZOCompression::FormatErrorMessage(), CLZOCompression::fStreamFormat, CCompression::GetFlags(), kMax_UInt, min(), n, NULL, s_CheckLZOHeader(), and CCompression::SetError().
Referenced by CT_DecompressBuffer(), CChangePhyloTreeCommand::Execute(), and CChangePhyloTreeCommand::Unexecute().
◆ DecompressBuffer() [3/5] virtual bool CZipCompression::DecompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) virtualDecompress data in the buffer.
Implements ICompression.
Referenced by CT_DecompressBuffer(), and CResultZBtSrcX::ReadLength().
◆ DecompressBuffer() [4/5] virtual bool CZipCloudflareCompression::DecompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) virtualDecompress data in the buffer.
Implements ICompression.
◆ DecompressBuffer() [5/5] virtual bool ICompression::DecompressBuffer ( const void * src_buf, size_t src_len, void * dst_buf, size_t dst_size, size_t * dst_len ) pure virtual ◆ DecompressCache() bool CLZODecompressor::DecompressCache ( void ) protectedDecompress block of data in the cache buffer.
Definition at line 1614 of file lzo.cpp.
References CLZOCompression::DecompressBlock(), ERR_COMPRESS, CLZOCompression::FormatErrorMessage(), CLZODecompressor::m_BlockLen, CLZODecompressor::m_HeaderFlags, CLZOBuffer::m_InBuf, CLZOBuffer::m_InLen, CLZOBuffer::m_OutBegPtr, CLZOBuffer::m_OutBuf, CLZOBuffer::m_OutEndPtr, CLZOBuffer::m_OutSize, and memmove.
Referenced by CLZODecompressor::Finish(), and CLZODecompressor::Process().
◆ DecompressFile() [1/5] ◆ DecompressFile() [2/5]Decompress file.
Implements ICompression.
◆ DecompressFile() [3/5]Decompress file.
Implements ICompression.
Definition at line 762 of file lzo.cpp.
References CLZOCompressionFile::Close(), CCompressionFile::eMode_Read, CLZOCompression::GetBlockSize(), CCompression::GetErrorCode(), CCompression::GetErrorDescription(), CCompression::GetFlags(), CLZOCompression::GetLevel(), CLZOCompressionFile::Open(), CLZOCompression::SetBlockSize(), CCompression::SetError(), CCompression::SetFlags(), and CCompression::x_DecompressFile().
◆ DecompressFile() [4/5]Decompress file.
Implements ICompression.
◆ DecompressFile() [5/5]Decompress file.
Implements ICompression.
◆ DecompressFileIntoDir() [1/2]Decompress file into specified directory.
Decompress file into specified directory.
0
) protectedvirtual
Free all dynamically allocated data structures.
This function discards any unprocessed input and does not flush any pending output.
Implements CCompressionProcessor.
◆ End() [2/9] virtual EStatus CBZip2Decompressor::End ( int abandon =0
) protectedvirtual
Free all dynamically allocated data structures.
This function discards any unprocessed input and does not flush any pending output.
Implements CCompressionProcessor.
◆ End() [3/9] ◆ End() [4/9] ◆ End() [5/9] virtual EStatus CZipCompressor::End ( int abandon =0
) protectedvirtual
Free all dynamically allocated data structures.
This function discards any unprocessed input and does not flush any pending output.
Implements CCompressionProcessor.
◆ End() [6/9] virtual EStatus CZipDecompressor::End ( int abandon =0
) protectedvirtual
Free all dynamically allocated data structures.
This function discards any unprocessed input and does not flush any pending output.
Implements CCompressionProcessor.
◆ End() [7/9] virtual EStatus CZipCloudflareCompressor::End ( int abandon =0
) protectedvirtual
Free all dynamically allocated data structures.
This function discards any unprocessed input and does not flush any pending output.
Implements CCompressionProcessor.
◆ End() [8/9] virtual EStatus CZipCloudflareDecompressor::End ( int abandon =0
) protectedvirtual
Free all dynamically allocated data structures.
This function discards any unprocessed input and does not flush any pending output.
Implements CCompressionProcessor.
◆ End() [9/9] virtual EStatus CCompressionProcessor::End ( int abandon =0
) protectedpure virtual ◆ EstimateArchiveSize()
Return archive size as if all specified input entries were put in it.
Note that the return value is not the exact but the upper bound of what the archive size can be expected. This call does not recurse into any subdirectories but relies solely upon the information as passed via the parameter.
The returned size includes all necessary alignments and padding.
Definition at line 4611 of file tar.cpp.
References ALIGN_SIZE, BLOCK_SIZE, f, ITERATE, STarHeader::name, padding, result, s_BaseDir(), s_ToArchiveName(), s_ToFilesystemPath(), and SIZE_OF.
◆ EstimateCompressionBufferSize() [1/6] size_t CLZOCompression::EstimateCompressionBufferSize ( size_t src_len ) virtual ◆ EstimateCompressionBufferSize() [2/6] virtual size_t CZipCompression::EstimateCompressionBufferSize ( size_t src_len ) virtualEstimate buffer size for data compression.
The function shall estimate the size of buffer required to compress specified number of bytes of data using the CompressBuffer() function. This function may return a conservative value that may be larger than 'src_len'.
Implements ICompression.
◆ EstimateCompressionBufferSize() [3/6] virtual size_t CZipCloudflareCompression::EstimateCompressionBufferSize ( size_t src_len ) virtualEstimate buffer size for data compression.
The function shall estimate the size of buffer required to compress specified number of bytes of data using the CompressBuffer() function. This function may return a conservative value that may be larger than 'src_len'.
Implements ICompression.
◆ EstimateCompressionBufferSize() [4/6] virtual size_t ICompression::EstimateCompressionBufferSize ( size_t src_len ) pure virtual ◆ EstimateCompressionBufferSize() [5/6] size_t CLZOCompression::EstimateCompressionBufferSize ( size_t src_len, size_t blocksize, TLZOFlags flags ) static ◆ EstimateCompressionBufferSize() [6/6] virtual size_t CBZip2Compression::EstimateCompressionBufferSize ( size_t ) inlinevirtual ◆ Extract() [1/3]Create and return an IReader, which can extract contents of one named file (which can be requested by a name mask in the "name" parameter).
The tar archive is deemed to be in the specified stream "is", properly positioned (either at the beginning of the archive, or at any CTarEntryInfo::GetPosition(ePos_Header)'s result possibly off-set with some fixed archive base position, e.g. if there is any preamble). The extraction is done at the first matching entry only, then stops.
Definition at line 4759 of file tar.cpp.
References _ASSERT, CTar::CTar(), CTar::CTarReader, CTarEntryInfo::eFile, CTar::eInternal, eTakeOwnership, CTarEntryInfo::eUnknown, flags, CTar::fSkipUnsupported, CTar::fStreamPipeThrough, and mask.
◆ Extract() [2/3]Extract the entire archive.
Extract all archive entries, whose names match the preset mask. Entries will be extracted into either current directory or a directory otherwise specified by SetBaseDir().
Definition at line 342 of file archive.cpp.
References ARCHIVE_CHECK, CDirEntry::eDir, CArchive::eExtract, entries, F_ISSET, CArchive::fPreserveAll, ITERATE, CArchive::x_Open(), CArchive::x_ReadAndProcess(), and CArchive::x_RestoreAttrs().
◆ Extract() [3/3]Extract the entire archive (into either current directory or a directory otherwise specified by SetBaseDir()).
If the same-named files exist, they will be replaced (subject to fOverwrite) or backed up (fBackup), unless fUpdate is set, which would cause the replacement / backup only if the files are older than the archive entries. Note that if the fOverwrite bit is stripped, then no matching files will be updated / backed up / overwritten, but skipped.
Extract all archive entries, whose names match the pre-set mask.
Definition at line 1632 of file tar.cpp.
References CTarEntryInfo::eDir, CTar::eExtract, entries, CTar::fPreserveAll, ITERATE, CTar::m_Flags, CTar::x_Open(), CTar::x_ReadAndProcess(), and CTar::x_RestoreAttrs().
Referenced by CDownloadJob::x_DownloadAndExtract().
◆ ExtractEntry()Definition at line 532 of file archive.cpp.
References ARCHIVE, ARCHIVE_THROW1, CDirEntry::eBlockSpecial, CDirEntry::eCharSpecial, CDirEntry::eDir, CDirEntry::eFile, CDirEntry::eLink, CDirEntry::ePipe, CDirEntry::GetPath(), CArchiveEntryInfo::GetType(), and CArchive::m_Current.
Referenced by CArchive::x_ExtractEntry().
◆ ExtractEntryToCallback() [1/2]Extracts an archive file using user-defined callback to process extracted data.
Do nothing for entries of other types.
Implements IArchive.
Definition at line 443 of file archive_zip.cpp.
References _ASSERT, data, CDirEntry::eDir, IArchive::eRead, info, IArchive::m_Mode, mz_zip_reader_extract_to_callback(), s_ZipExtractCallback(), NStr::SizetToString(), ZIP_CHECK, ZIP_HANDLE, and ZIP_THROW.
◆ ExtractEntryToCallback() [2/2] ◆ ExtractEntryToFileSystem() [1/2]Extracts an archive entry to file system.
Implements IArchive.
Definition at line 370 of file archive_zip.cpp.
References _ASSERT, CDirEntry::eDir, IArchive::eRead, info, IArchive::m_Mode, MZ_FCLOSE, MZ_FILE, MZ_FOPEN, mz_zip_file_write_callback(), mz_zip_reader_extract_to_callback(), NStr::SizetToString(), ZIP_CHECK, ZIP_HANDLE, and ZIP_THROW.
◆ ExtractEntryToFileSystem() [2/2] ◆ ExtractEntryToMemory() [1/2]Extracts an archive file to a memory buffer.
Do nothing for entries of other types.
Implements IArchive.
Definition at line 402 of file archive_zip.cpp.
References _ASSERT, buf, CDirEntry::eDir, IArchive::eRead, info, IArchive::m_Mode, mz_zip_reader_extract_to_mem(), ncbi::grid::netcache::search::fields::size, NStr::SizetToString(), ZIP_CHECK, ZIP_HANDLE, and ZIP_THROW.
◆ ExtractEntryToMemory() [2/2] ◆ ExtractFileToCallback()Extract single file entry using user-defined callback.
Definition at line 434 of file archive.cpp.
References ARCHIVE, ARCHIVE_THROW_INFO, CArchive::eExtract, CDirEntry::eFile, CDirEntry::eUnknown, F_ISSET, CArchive::fSkipUnsupported, info, kEmptyStr, and CArchive::x_Open().
◆ ExtractFileToHeap()Extract single file entry to a dynamically allocated memory buffer.
Definition at line 385 of file archive.cpp.
References ARCHIVE_CHECK, ARCHIVE_THROW, ARCHIVE_THROW_INFO, CDirEntry::eFile, CDirEntry::eUnknown, CArchive::ExtractFileToMemory(), F_ISSET, free(), CArchive::fSkipUnsupported, get_limits(), info, NStr::Int8ToString(), kEmptyStr, malloc(), NCBI_THROW, and NULL.
◆ ExtractFileToMemory() void CArchive::ExtractFileToMemory ( const CArchiveEntryInfo & info, void * buf, size_t buf_size, size_t * out_size ) virtualExtract single file entry to a memory buffer.
Definition at line 359 of file archive.cpp.
References ARCHIVE, ARCHIVE_CHECK, ARCHIVE_THROW_INFO, buf, CArchive::eExtract, CDirEntry::eFile, CDirEntry::eUnknown, F_ISSET, CArchive::fSkipUnsupported, info, kEmptyStr, NCBI_THROW, and CArchive::x_Open().
Referenced by CArchive::ExtractFileToHeap().
◆ Finalize() void CArchiveMemory::Finalize ( void ** buf_ptr, size_t * buf_size_ptr ) virtualFinalize the archive created in memory.
Return pointer to a buffer with created archive and its size. After this call you cannot write to archive anymore, but you can read from it. Returning pointer to buffer and its size also will be saved internally and used for opening archive for reading (see constructor).
Definition at line 1194 of file archive.cpp.
References ARCHIVE, ARCHIVE_CHECK, CArchiveMemory::m_Buf, CArchiveMemory::m_BufSize, and NCBI_THROW.
◆ FinalizeMemory() [1/2] void CArchiveZip::FinalizeMemory ( void ** buf, size_t * size ) virtualFinalize the archive created in memory.
Return pointer to buffer with created archive and its size. The only valid operation after this call is Close().
Implements IArchive.
Definition at line 214 of file archive_zip.cpp.
References _ASSERT, buf, IArchive::eMemory, IArchive::eWrite, free(), IArchive::m_Location, IArchive::m_Mode, mz_zip_writer_finalize_heap_archive(), NULL, ncbi::grid::netcache::search::fields::size, ZIP_CHECK, ZIP_HANDLE, and ZIP_THROW.
◆ FinalizeMemory() [2/2] virtual void IArchive::FinalizeMemory ( void ** buf, size_t * size ) pure virtualFinalize the archive created in memory.
Return pointer to buffer with created archive and its size. The only valid operation after this call is Close().
Implemented in CArchiveZip.
◆ Finish() [1/9] virtual EStatus CBZip2Compressor::Finish ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFinish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implements CCompressionProcessor.
◆ Finish() [2/9] virtual EStatus CBZip2Decompressor::Finish ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFinish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implements CCompressionProcessor.
◆ Finish() [3/9]Finish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implements CCompressionProcessor.
Definition at line 1236 of file lzo.cpp.
References _VERIFY, CLZOCompressor::CompressCache(), ERR_COMPRESS, CCompressionProcessor::eStatus_EndOfData, CCompressionProcessor::eStatus_Error, CCompressionProcessor::eStatus_Overflow, CCompressionProcessor::eStatus_Success, F_ISSET, CLZOCompression::fAllowEmptyData, CLZOCompressor::Flush(), CLZOCompression::FormatErrorMessage(), CCompression::GetFlags(), CCompressionProcessor::GetProcessedSize(), CLZOCompression::m_BlockSize, CLZOCompressor::m_FileInfo, CLZOBuffer::m_InLen, CLZOCompressor::m_NeedWriteHeader, CLZOBuffer::m_OutBegPtr, CLZOBuffer::m_OutEndPtr, CLZOBuffer::m_OutSize, s_WriteLZOHeader(), CCompression::SetError(), and CCompressionUtil::StoreUI4().
◆ Finish() [4/9]Finish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implements CCompressionProcessor.
Definition at line 1546 of file lzo.cpp.
References CLZODecompressor::DecompressCache(), CCompression::eMode_Unknown, ERR_COMPRESS, CCompressionProcessor::eStatus_EndOfData, CCompressionProcessor::eStatus_Error, CCompressionProcessor::eStatus_Overflow, CCompressionProcessor::eStatus_Success, F_ISSET, CLZOCompression::fAllowEmptyData, CLZODecompressor::Flush(), CLZOCompression::FormatErrorMessage(), kMinHeaderSize, CLZODecompressor::m_BlockLen, CLZODecompressor::m_Cache, CCompression::m_DecompressMode, CLZODecompressor::m_HeaderLen, CLZOBuffer::m_InLen, CLZOBuffer::m_OutBegPtr, CLZOBuffer::m_OutEndPtr, CLZODecompressor::Process(), and CCompression::SetError().
◆ Finish() [5/9] virtual EStatus CZipCompressor::Finish ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFinish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implements CCompressionProcessor.
◆ Finish() [6/9] virtual EStatus CZipDecompressor::Finish ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFinish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implements CCompressionProcessor.
◆ Finish() [7/9] virtual EStatus CZipCloudflareCompressor::Finish ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFinish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implements CCompressionProcessor.
◆ Finish() [8/9] virtual EStatus CZipCloudflareDecompressor::Finish ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFinish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implements CCompressionProcessor.
◆ Finish() [9/9] virtual EStatus CCompressionProcessor::Finish ( char * out_buf, size_t out_size, size_t * out_avail ) protectedpure virtualFinish the compression/decompression process.
Process pending input, flush pending output. This function slightly like to Flush(), but it must be called only at the end of compression process just before End().
Implemented in CZipCloudflareDecompressor, CZipCloudflareCompressor, CZipDecompressor, CZipCompressor, CTransparentProcessor, CLZODecompressor, CLZOCompressor, CBZip2Decompressor, and CBZip2Compressor.
◆ Flush() [1/9] virtual EStatus CBZip2Compressor::Flush ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFlush compressed/decompressed data from the output buffer.
Flushing may degrade compression for some compression algorithms and so it should be used only when necessary.
Implements CCompressionProcessor.
◆ Flush() [2/9] virtual EStatus CBZip2Decompressor::Flush ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFlush compressed/decompressed data from the output buffer.
Flushing may degrade compression for some compression algorithms and so it should be used only when necessary.
Implements CCompressionProcessor.
◆ Flush() [3/9] ◆ Flush() [4/9]Flush compressed/decompressed data from the output buffer.
Flushing may degrade compression for some compression algorithms and so it should be used only when necessary.
Implements CCompressionProcessor.
Definition at line 1519 of file lzo.cpp.
References CCompression::eMode_Unknown, CCompressionProcessor::eStatus_Overflow, CCompressionProcessor::eStatus_Success, CCompressionProcessor::IncreaseOutputSize(), CCompression::m_DecompressMode, CLZOBuffer::m_OutBegPtr, CLZOBuffer::m_OutBuf, CLZOBuffer::m_OutEndPtr, min(), and n.
Referenced by CLZODecompressor::Finish(), and CLZODecompressor::Process().
◆ Flush() [5/9] virtual EStatus CZipCompressor::Flush ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFlush compressed/decompressed data from the output buffer.
Flushing may degrade compression for some compression algorithms and so it should be used only when necessary.
Implements CCompressionProcessor.
◆ Flush() [6/9] virtual EStatus CZipDecompressor::Flush ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFlush compressed/decompressed data from the output buffer.
Flushing may degrade compression for some compression algorithms and so it should be used only when necessary.
Implements CCompressionProcessor.
◆ Flush() [7/9] virtual EStatus CZipCloudflareCompressor::Flush ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFlush compressed/decompressed data from the output buffer.
Flushing may degrade compression for some compression algorithms and so it should be used only when necessary.
Implements CCompressionProcessor.
◆ Flush() [8/9] virtual EStatus CZipCloudflareDecompressor::Flush ( char * out_buf, size_t out_size, size_t * out_avail ) protectedvirtualFlush compressed/decompressed data from the output buffer.
Flushing may degrade compression for some compression algorithms and so it should be used only when necessary.
Implements CCompressionProcessor.
◆ Flush() [9/9] virtual EStatus CCompressionProcessor::Flush ( char * out_buf, size_t out_size, size_t * out_avail ) protectedpure virtual ◆ FormatErrorMessage() [1/4] string CLZOCompression::FormatErrorMessage ( string where ) const protected ◆ FormatErrorMessage() [2/4]Format string with last error description.
◆ FormatErrorMessage() [3/4] string CZipCompression::FormatErrorMessage ( string where, size_t pos =0
) const protected
Format string with last error description.
If pos == 0, that use internal m_Stream's position to report.
◆ FormatErrorMessage() [4/4] string CZipCloudflareCompression::FormatErrorMessage ( string where, size_t pos =0
) const protected
Format string with last error description.
If pos == 0, that use internal m_Stream's position to report.
◆ Free() void CCompressionDictionary::Free ( void ) ◆ g_GZip_Cloudflare_ScanForChunks()Get list of positions of separate gzip files in the concatenated gzip file.
Return results via user defined handler. Throw CCoreException/CCompressionException on error.
Get list of positions of separate gzip files in the concatenated gzip file.
Return results via user defined handler. Throw CCoreException/CCompressionException on error.
Referenced by CLDS2_UrlHandler_GZipFile::SaveChunks().
◆ GetBaseDir() [1/2] virtual const string& CArchive::GetBaseDir ( void ) const inlinevirtualGet base directory to use for files while extracting from/adding to the archive, and in the latter case used only for relative paths.
Definition at line 299 of file archive.hpp.
References CArchive::m_BaseDir.
◆ GetBaseDir() [2/2]Get base directory to use for files while extracting from/adding to the archive, and in the latter case used only for relative paths.
Definition at line 873 of file tar.hpp.
References CTar::m_BaseDir.
◆ GetBlockSize() size_t CLZOCompression::GetBlockSize ( void ) const inline ◆ GetBlockSizeDefault() size_t CLZOCompression::GetBlockSizeDefault ( void ) static ◆ GetBlockSizeMax() size_t CLZOCompression::GetBlockSizeMax ( void ) staticLZO can compress/decompress data limited by its 'lzo_uint' type.
Definition at line 858 of file lzo.cpp.
References max().
◆ GetBlockSizeMin() size_t CLZOCompression::GetBlockSizeMin ( void ) staticThis is an artifical limit.
You can use block size as low as 1, but overhead will be too big for practical reasons.
Definition at line 855 of file lzo.cpp.
◆ GetBZip2ErrorDescription() const char* CBZip2Compression::GetBZip2ErrorDescription ( int errcode ) protectedGet error description for specified error code.
◆ GetComment() const string& CArchiveEntryInfo::GetComment ( void ) const inline ◆ GetCompressor() [1/4] ◆ GetCompressor() [2/4] ◆ GetCompressor() [3/4] ◆ GetCompressor() [4/4] ◆ GetCreationCTime() CTime CTarEntryInfo::GetCreationCTime ( void ) const inline ◆ GetCreationTime() [1/2] time_t CArchiveEntryInfo::GetCreationTime ( void ) const inline ◆ GetCreationTime() [2/2] time_t CTarEntryInfo::GetCreationTime ( void ) const inline ◆ GetCurrentPosition() Uint8 CTar::GetCurrentPosition ( void ) const inline ◆ GetData() const void* CCompressionDictionary::GetData ( void ) inline ◆ GetDecompressor() [1/4] ◆ GetDecompressor() [2/4] ◆ GetDecompressor() [3/4] ◆ GetDecompressor() [4/4] ◆ GetDefaultLevel() [1/5] virtual ELevel CBZip2Compression::GetDefaultLevel ( void ) const inlinevirtual ◆ GetDefaultLevel() [2/5] virtual ELevel CLZOCompression::GetDefaultLevel ( void ) const inlinevirtual ◆ GetDefaultLevel() [3/5] virtual ELevel CZipCompression::GetDefaultLevel ( void ) const inlinevirtual ◆ GetDefaultLevel() [4/5] virtual ELevel CZipCloudflareCompression::GetDefaultLevel ( void ) const inlinevirtual ◆ GetDefaultLevel() [5/5] virtual ELevel ICompression::GetDefaultLevel ( void ) const pure virtual ◆ GetEntryInfo() [1/2]Get detailed information about an archive entry by index.
Implements IArchive.
Definition at line 279 of file archive_zip.cpp.
References _ASSERT, CDirEntry::eDir, CDirEntry::eFile, IArchive::eRead, CDirEntry::eUnknown, CDirEntry::GetType(), info, kMax_UInt, mz_zip_archive_file_stat::m_comment, mz_zip_archive_file_stat::m_comment_size, mz_zip_archive_file_stat::m_comp_size, mz_zip_archive_file_stat::m_external_attr, mz_zip_archive_file_stat::m_filename, IArchive::m_Mode, mz_zip_archive_file_stat::m_time, mz_zip_archive_file_stat::m_uncomp_size, mz_zip_archive_file_stat::m_version_made_by, mz_zip_reader_file_stat(), mz_zip_reader_is_file_a_directory(), NCBI_THROW, NStr::SizetToString(), ZIP_CHECK, ZIP_HANDLE, and ZIP_THROW.
◆ GetEntryInfo() [2/2]Get detailed information about an archive entry by index.
Implemented in CArchiveZip.
◆ GetErrCodeString() [1/3] virtual const char* CArchiveException::GetErrCodeString ( void ) const inlineoverridevirtualTranslate from an error code value to its string representation.
Reimplemented from CCoreException.
Definition at line 81 of file archive_.hpp.
References CArchiveException::eAppend, CArchiveException::eBackup, CArchiveException::eBadName, CArchiveException::eClose, CArchiveException::eCreate, CArchiveException::eExtract, CArchiveException::eList, CArchiveException::eMemory, CArchiveException::eOpen, CArchiveException::eRestoreAttrs, CArchiveException::eUnsupported, CArchiveException::eUnsupportedEntryType, CArchiveException::eWrite, CCoreException::GetErrCode(), and CException::GetErrCodeString().
◆ GetErrCodeString() [2/3] virtual const char* CCompressionException::GetErrCodeString ( void ) const inlineoverridevirtual ◆ GetErrCodeString() [3/3] virtual const char* CTarException::GetErrCodeString ( void ) const inlineoverridevirtualTranslate from an error code value to its string representation.
Reimplemented from CCoreException.
Definition at line 127 of file tar.hpp.
References CTarException::eBackup, CTarException::eBadName, CTarException::eChecksum, CTarException::eCreate, CTarException::eMemory, CTarException::eNameTooLong, CTarException::eOpen, CTarException::eRead, CTarException::eRestoreAttrs, CTarException::eUnsupportedEntryType, CTarException::eUnsupportedSource, CTarException::eUnsupportedTarFormat, CTarException::eWrite, CCoreException::GetErrCode(), and CException::GetErrCodeString().
◆ GetErrorCode() [1/2] int CCompression::GetErrorCode ( void ) const virtual ◆ GetErrorCode() [2/2] virtual int ICompression::GetErrorCode ( void ) const pure virtualImplemented in CCompression.
◆ GetErrorDescription() [1/2] string CCompression::GetErrorDescription ( void ) const virtual ◆ GetErrorDescription() [2/2] virtual string ICompression::GetErrorDescription ( void ) const pure virtual ◆ GetFlags() [1/4] virtual TFlags CArchive::GetFlags ( void ) const inlinevirtual ◆ GetFlags() [2/4]Get/set flags.
Implements ICompression.
Definition at line 105 of file compress.cpp.
References CCompression::m_Flags.
Referenced by CBZip2Compressor::AllowEmptyData(), CBZip2Decompressor::AllowEmptyData(), CLZOCompressor::AllowEmptyData(), CLZODecompressor::AllowEmptyData(), CZipCompressor::AllowEmptyData(), CZipDecompressor::AllowEmptyData(), CZipCloudflareCompressor::AllowEmptyData(), CZipCloudflareDecompressor::AllowEmptyData(), CLZOCompression::CompressBuffer(), CLZOCompression::CompressFile(), CResultZBtSrcX::CResultZBtSrcX(), CT_CompressBuffer(), CT_DecompressBuffer(), CLZOCompression::DecompressBuffer(), CLZOCompression::DecompressFile(), CLZOCompression::EstimateCompressionBufferSize(), CLZOCompressor::Finish(), CLZOCompressionFile::Open(), and CLZOCompressor::Process().
◆ GetFlags() [3/4] ◆ GetFlags() [4/4] virtual TFlags ICompression::GetFlags ( void ) const pure virtualImplemented in CCompression.
◆ GetGroupId() [1/2] unsigned int CArchiveEntryInfo::GetGroupId ( void ) const inline ◆ GetGroupId() [2/2] unsigned int CTarEntryInfo::GetGroupId ( void ) const inline ◆ GetGroupName() [1/2] const string& CArchiveEntryInfo::GetGroupName ( void ) const inline ◆ GetGroupName() [2/2] const string& CTarEntryInfo::GetGroupName ( void ) const inline ◆ GetIndex() size_t CArchiveEntryInfo::GetIndex ( void ) const inline ◆ GetLastAccessCTime() CTime CTarEntryInfo::GetLastAccessCTime ( void ) const inline ◆ GetLastAccessTime() [1/2] time_t CArchiveEntryInfo::GetLastAccessTime ( void ) const inline ◆ GetLastAccessTime() [2/2] time_t CTarEntryInfo::GetLastAccessTime ( void ) const inline ◆ GetLevel() [1/4] virtual ELevel CBZip2Compression::GetLevel ( void ) const virtualGet compression level.
Reimplemented from CCompression.
◆ GetLevel() [2/4] ◆ GetLevel() [3/4] ◆ GetLevel() [4/4] ◆ GetLinkName() [1/2] const string& CArchiveEntryInfo::GetLinkName ( void ) const inline ◆ GetLinkName() [2/2] const string& CTarEntryInfo::GetLinkName ( void ) const inline ◆ GetLZOErrorDescription() const char * CLZOCompression::GetLZOErrorDescription ( int errcode ) protected ◆ GetMajor() [1/2] unsigned int CArchiveEntryInfo::GetMajor ( void ) const ◆ GetMajor() [2/2] unsigned int CTarEntryInfo::GetMajor ( void ) const ◆ GetMemoryLevel() [1/2] int CZipCompression::GetMemoryLevel ( void ) const inline ◆ GetMemoryLevel() [2/2] int CZipCloudflareCompression::GetMemoryLevel ( void ) const inline ◆ GetMemoryLevelDefault() [1/2] ◆ GetMemoryLevelDefault() [2/2] ◆ GetMemoryLevelMax() [1/2] static int CZipCompression::GetMemoryLevelMax ( void ) static ◆ GetMemoryLevelMax() [2/2] static int CZipCloudflareCompression::GetMemoryLevelMax ( void ) static ◆ GetMemoryLevelMin() [1/2] static int CZipCompression::GetMemoryLevelMin ( void ) static ◆ GetMemoryLevelMin() [2/2] static int CZipCloudflareCompression::GetMemoryLevelMin ( void ) static ◆ GetMinor() [1/2] unsigned int CArchiveEntryInfo::GetMinor ( void ) const ◆ GetMinor() [2/2] unsigned int CTarEntryInfo::GetMinor ( void ) const ◆ GetMode() [1/4] ◆ GetMode() [2/4] ◆ GetMode() [3/4] mode_t CArchiveEntryInfo::GetMode ( void ) const ◆ GetMode() [4/4] TTarMode CTarEntryInfo::GetMode ( void ) const ◆ GetModificationCTime() CTime CTarEntryInfo::GetModificationCTime ( void ) const inline ◆ GetModificationTime() [1/2] time_t CArchiveEntryInfo::GetModificationTime ( void ) const inline ◆ GetModificationTime() [2/2] time_t CTarEntryInfo::GetModificationTime ( void ) const inline ◆ GetName() [1/2] const string& CArchiveEntryInfo::GetName ( void ) const inline ◆ GetName() [2/2] ◆ GetNextEntryData() IReader * CTar::GetNextEntryData ( void )Create and return an IReader, which can extract the current archive entry that has been previously returned via GetNextEntryInfo.
The returned pointer is non-zero only if the current entry is a file (even of size 0). The ownership of the pointer is passed to the caller (so it has to be explicitly deleted when no longer needed). The IReader may be used to read all or part of data out of the entry without affecting GetNextEntryInfo()'s ability to find any following entry in the archive. See test suite (in test/test_tar.cpp) for a usage example.
Definition at line 4790 of file tar.cpp.
References CTar::CTarReader, CTarEntryInfo::eFile, CTarEntryInfo::eUnknown, CTar::fSkipUnsupported, CTarEntryInfo::GetType(), CTar::m_Current, and CTar::m_Flags.
◆ GetNextEntryInfo()Iterate over the archive forward and return first (or next) entry.
When using this method (possibly along with GetNextEntryData()), the archive stream (if any) must not be accessed outside the CTar API, because otherwise inconsistency in data may result. An application may call GetNextEntryData() to stream some or all of the data out of this entry, or it may call GetNextEntryInfo() again to skip to the next archive entry, etc. Note that the archive can contain multiple versions of the same entry (in case if an update was done on it), all of which but the last one are to be ignored. This call traverses through all those entry versions, and sequentially exposes them to the application level. See test suite (in test/test_tar.cpp) for a usage example.
Definition at line 1650 of file tar.cpp.
References _ASSERT, ALIGN_SIZE, BLOCK_OF, CTar::eInternal, CTarEntryInfo::ePos_Data, CTar::eRO, CTarEntryInfo::GetPosition(), CTarEntryInfo::GetSize(), CTar::m_Bad, CTar::m_Current, CTar::m_OpenMode, CTar::m_StreamPos, CTar::x_Open(), CTar::x_ReadAndProcess(), and CTar::x_Skip().
◆ GetNumEntries() [1/2] size_t CArchiveZip::GetNumEntries ( void ) virtual ◆ GetNumEntries() [2/2] virtual size_t IArchive::GetNumEntries ( void ) pure virtualReturns the total number of entries in the archive.
Implemented in CArchiveZip.
◆ GetOutputSize() size_t CCompressionProcessor::GetOutputSize ( void ) inline ◆ GetPath() ◆ GetPosition() Uint8 CTarEntryInfo::GetPosition ( EPos which ) const inline ◆ GetProcessedSize() size_t CCompressionProcessor::GetProcessedSize ( void ) inline ◆ GetRecommendedBufferSizes() [1/4]Get recommended buffer sizes for stream/file I/O.
These buffer sizes are softly recommended. They are not required, (de)compression streams accepts any reasonable buffer size, for both input and output. Respecting the recommended size just makes it a bit easier for (de)compressor, reducing the amount of memory shuffling and buffering, resulting in minor performance savings. If compression library doesn't have preferences about I/O buffer sizes, kCompressionDefaultBufSize will be used.
Get recommended buffer sizes for stream/file I/O.
These buffer sizes are softly recommended. They are not required, (de)compression streams accepts any reasonable buffer size, for both input and output. Respecting the recommended size just makes it a bit easier for (de)compressor, reducing the amount of memory shuffling and buffering, resulting in minor performance savings. If compression library doesn't have preferences about I/O buffer sizes, kCompressionDefaultBufSize will be used.
Definition at line 719 of file lzo.cpp.
References CCompression::SRecommendedBufferSizes::compression_in, CCompression::SRecommendedBufferSizes::compression_out, CCompression::SRecommendedBufferSizes::decompression_in, CCompression::SRecommendedBufferSizes::decompression_out, kCompressionDefaultBufSize, and CCompression::SRecommendedBufferSizes::RoundUp().
◆ GetRecommendedBufferSizes() [3/4]Get recommended buffer sizes for stream/file I/O.
These buffer sizes are softly recommended. They are not required, (de)compression streams accepts any reasonable buffer size, for both input and output. Respecting the recommended size just makes it a bit easier for (de)compressor, reducing the amount of memory shuffling and buffering, resulting in minor performance savings. If compression library doesn't have preferences about I/O buffer sizes, kCompressionDefaultBufSize will be used.
Get recommended buffer sizes for stream/file I/O.
These buffer sizes are softly recommended. They are not required, (de)compression streams accepts any reasonable buffer size, for both input and output. Respecting the recommended size just makes it a bit easier for (de)compressor, reducing the amount of memory shuffling and buffering, resulting in minor performance savings. If compression library doesn't have preferences about I/O buffer sizes, kCompressionDefaultBufSize will be used.
Get error code/description of last stream operation (m_Stream).
It can be received using GetErrorCode()/GetErrorDescription() methods.
◆ GetStreamError() [3/3] void CZipCloudflareCompressionFile::GetStreamError ( void ) protectedGet error code/description of last stream operation (m_Stream).
It can be received using GetErrorCode()/GetErrorDescription() methods.
◆ GetType() [1/2] ◆ GetType() [2/2] EType CTarEntryInfo::GetType ( void ) const inline ◆ GetUI2() Uint2 CCompressionUtil::GetUI2 ( const void * buf ) static ◆ GetUI4() Uint4 CCompressionUtil::GetUI4 ( const void * buf ) static ◆ GetUserId() [1/2] unsigned int CArchiveEntryInfo::GetUserId ( void ) const inline ◆ GetUserId() [2/2] unsigned int CTarEntryInfo::GetUserId ( void ) const inline ◆ GetUserName() [1/2] const string& CArchiveEntryInfo::GetUserName ( void ) const inline ◆ GetUserName() [2/2] const string& CTarEntryInfo::GetUserName ( void ) const inline ◆ GetVersion() [1/6] virtual CVersionInfo CBZip2Compression::GetVersion ( void ) const virtualReturn name and version of the compression library.
Implements CCompression.
◆ GetVersion() [2/6]Return name and version of the compression library.
Implements CCompression.
Definition at line 154 of file lzo.cpp.
◆ GetVersion() [3/6] virtual CVersionInfo CZipCompression::GetVersion ( void ) const virtualReturn name and version of the compression library.
Implements CCompression.
◆ GetVersion() [4/6] virtual CVersionInfo CZipCloudflareCompression::GetVersion ( void ) const virtualReturn name and version of the compression library.
Implements CCompression.
◆ GetVersion() [5/6] virtual CVersionInfo ICompression::GetVersion ( void ) const pure virtual ◆ GetVersion() [6/6] virtual CVersionInfo CCompression::GetVersion ( void ) const pure virtual ◆ GetWindowBits() [1/2] int CZipCompression::GetWindowBits ( void ) const inline ◆ GetWindowBits() [2/2] int CZipCloudflareCompression::GetWindowBits ( void ) const inline ◆ GetWindowBitsDefault() [1/2] ◆ GetWindowBitsDefault() [2/2] ◆ GetWindowBitsMax() [1/2] static int CZipCompression::GetWindowBitsMax ( void ) static ◆ GetWindowBitsMax() [2/2] static int CZipCloudflareCompression::GetWindowBitsMax ( void ) static ◆ GetWindowBitsMin() [1/2] static int CZipCompression::GetWindowBitsMin ( void ) static ◆ GetWindowBitsMin() [2/2] static int CZipCloudflareCompression::GetWindowBitsMin ( void ) static ◆ GetWorkFactor() int CBZip2Compression::GetWorkFactor ( void ) const inline ◆ GetWorkFactorDefault() static int CBZip2Compression::GetWorkFactorDefault ( void ) static ◆ GetWorkFactorMax() static int CBZip2Compression::GetWorkFactorMax ( void ) static ◆ GetWorkFactorMin() static int CBZip2Compression::GetWorkFactorMin ( void ) static ◆ HaveSupport() [1/6] ◆ HaveSupport() [2/6] ◆ HaveSupport() [3/6] ◆ HaveSupport() [4/6] ◆ HaveSupport() [5/6] ◆ HaveSupport() [6/6] ◆ HaveSupport_AbsolutePath() [1/2] virtual bool CArchiveZip::HaveSupport_AbsolutePath ( void ) inlinevirtual ◆ HaveSupport_AbsolutePath() [2/2] virtual bool IArchive::HaveSupport_AbsolutePath ( void ) pure virtualImplemented in CArchiveZip.
◆ HaveSupport_FileStream() [1/2] virtual bool CArchiveZip::HaveSupport_FileStream ( void ) inlinevirtual ◆ HaveSupport_FileStream() [2/2] virtual bool IArchive::HaveSupport_FileStream ( void ) pure virtualImplemented in CArchiveZip.
◆ HaveSupport_Type() [1/2] ◆ HaveSupport_Type() [2/2] ◆ IncreaseOutputSize() void CCompressionProcessor::IncreaseOutputSize ( size_t n_bytes ) inlineprotected ◆ IncreaseProcessedSize() void CCompressionProcessor::IncreaseProcessedSize ( size_t n_bytes ) inlineprotected ◆ Init() [1/9] virtual EStatus CBZip2Compressor::Init ( void ) protectedvirtualInitialize the internal stream state for compression/decompression.
It does not perform any compression, this will be done by Process().
Implements CCompressionProcessor.
◆ Init() [2/9] virtual EStatus CBZip2Decompressor::Init ( void ) protectedvirtualInitialize the internal stream state for compression/decompression.
It does not perform any compression, this will be done by Process().
Implements CCompressionProcessor.
◆ Init() [3/9]Initialize the internal stream state for compression/decompression.
It does not perform any compression, this will be done by Process().
Implements CCompressionProcessor.
Definition at line 1133 of file lzo.cpp.
References CCompression::eMode_Unknown, CCompressionProcessor::eStatus_Success, CLZOCompression::EstimateCompressionBufferSize(), CLZOCompression::GetLevel(), CLZOCompression::InitCompression(), CLZOCompression::m_BlockSize, CCompression::m_DecompressMode, CLZOCompressor::m_NeedWriteHeader, CCompressionProcessor::Reset(), CLZOBuffer::ResetBuffer(), CCompressionProcessor::SetBusy(), and CCompression::SetError().
◆ Init() [4/9] ◆ Init() [5/9] virtual EStatus CZipCompressor::Init ( void ) protectedvirtualInitialize the internal stream state for compression/decompression.
It does not perform any compression, this will be done by Process().
Implements CCompressionProcessor.
◆ Init() [6/9] virtual EStatus CZipDecompressor::Init ( void ) protectedvirtualInitialize the internal stream state for compression/decompression.
It does not perform any compression, this will be done by Process().
Implements CCompressionProcessor.
◆ Init() [7/9] virtual EStatus CZipCloudflareCompressor::Init ( void ) protectedvirtualInitialize the internal stream state for compression/decompression.
It does not perform any compression, this will be done by Process().
Implements CCompressionProcessor.
◆ Init() [8/9] virtual EStatus CZipCloudflareDecompressor::Init ( void ) protectedvirtualInitialize the internal stream state for compression/decompression.
It does not perform any compression, this will be done by Process().
Implements CCompressionProcessor.
◆ Init() [9/9] virtual EStatus CCompressionProcessor::Init ( void ) protectedpure virtual ◆ InitCompression() void CLZOCompression::InitCompression ( ELevel level ) protected ◆ Initialize() [1/4] static bool CBZip2Compression::Initialize ( void ) inlinestaticInitialize compression library (for API compatibility, bz2 don't need it).
Definition at line 59 of file bzip2.hpp.
◆ Initialize() [2/4] bool CLZOCompression::Initialize ( void ) staticInitialize LZO library.
You should call this method only once, before any real compression/decompression operations.
Definition at line 160 of file lzo.cpp.
◆ Initialize() [3/4]Initialize compression library (for API compatibility, zlib don't need it).
Definition at line 84 of file zlib.hpp.
◆ Initialize() [4/4] static bool CZipCloudflareCompression::Initialize ( void ) inlinestaticInitialize compression library (for API compatibility, zlib don't need it).
Definition at line 78 of file zlib_cloudflare.hpp.
◆ IsBusy() bool CCompressionProcessor::IsBusy ( void ) const inline ◆ List() [1/2] ◆ List() [2/2] ◆ Load()Load existing archive from file system to memory.
Definition at line 1223 of file archive.cpp.
References ARCHIVE_THROW, CFileIO::Close(), CArchive::Close(), CFileIO_Base::eOpen, CFileIO_Base::eRead, f, AutoArray< X, Del >::get(), CArchiveMemory::m_Buf, CArchiveMemory::m_BufSize, CArchiveMemory::m_OwnBuf, CFileIO::Open(), CFileIO::Read(), s_OSReason(), and tmp.
◆ LoadFromStream() size_t CCompressionDictionary::LoadFromStream ( istream & is, size_t size ) protected ◆ NCBI_EXCEPTION_DEFAULT() [1/3] ◆ NCBI_EXCEPTION_DEFAULT() [2/3] ◆ NCBI_EXCEPTION_DEFAULT() [3/3] ◆ OnChunk()Callback method, to be implemented by the end user.
Implemented in CGZipChunkHandler.
◆ Open() [1/12]Opens a compressed file for reading or writing.
Do the same as standard Open(), but can also get/set file info.
Definition at line 928 of file lzo.cpp.
References buf, CLZOCompressionFile::Close(), CCompressionStreamProcessor::eDelete, CCompressionFile::eMode_Read, file_name, CCompressionStream::fOwnReader, CCompressionStream::fOwnWriter, CLZOCompression::GetBlockSize(), CCompression::GetFlags(), CLZOCompression::GetLevel(), in(), info, kMaxHeaderSize, CLZOCompression::m_BlockSize, CLZOCompressionFile::m_File, CLZOCompressionFile::m_Mode, CLZOCompressionFile::m_Stream, out(), s_CheckLZOHeader(), CLZOCompression::SetBlockSize(), CCompression::SetError(), CLZOCompressor::SetFileInfo(), string, and trunc.
◆ Open() [2/12]Opens a compressed file for reading or writing.
Do the same as standard Open(), but can also get/set file info.
Opens a compressed file for reading or writing.
Do the same as standard Open(), but can also get/set file info.
Opens a compressed file for reading or writing.
Implements CCompressionFile.
◆ Open() [5/12]Opens a compressed file for reading or writing.
Implements CCompressionFile.
Definition at line 914 of file lzo.cpp.
References CCompressionFile::eMode_Write, F_ISSET, file_name, CLZOCompression::fStoreFileInfo, info, and s_CollectFileInfo().
Referenced by CLZOCompressionFile::CLZOCompressionFile(), CLZOCompression::CompressFile(), and CLZOCompression::DecompressFile().
◆ Open() [6/12]Opens a compressed file for reading or writing.
Implements CCompressionFile.
◆ Open() [7/12]Opens a compressed file for reading or writing.
Implements CCompressionFile.
◆ Open() [8/12] virtual bool CCompressionFile::Open ( const string & path, EMode mode, size_t compression_in_bufsize =0
, size_t compression_out_bufsize = 0
) pure virtual ◆ Open() [9/12] void CArchiveFile::Open ( EAction action ) protectedvirtual ◆ Open() [10/12] void CArchiveMemory::Open ( EAction action ) protectedvirtual ◆ Open() [11/12] void CArchiveCompressionFileStream::Open ( EAction action ) protectedvirtual ◆ Open() [12/12] virtual void CArchive::Open ( EAction action ) protectedpure virtual ◆ OpenFile() [1/2]
Open archive file for reading.
Implements IArchive.
Definition at line 172 of file archive_zip.cpp.
References IArchive::eFile, IArchive::eRead, IArchive::m_Location, IArchive::m_Mode, mz_zip_reader_init_file(), ZIP_DELETE, ZIP_HANDLE, ZIP_NEW, and ZIP_THROW.
◆ OpenFile() [2/2] virtual void IArchive::OpenFile ( const string & filename ) pure virtual ◆ OpenFileStream() [1/2] void CArchiveZip::OpenFileStream ( FILE * filestream, Uint8 archive_size =0
) virtual
Open archive from a FILE stream, beginning at the current file position.
Implements IArchive.
Definition at line 186 of file archive_zip.cpp.
References IArchive::eFileStream, IArchive::eRead, IArchive::m_Location, IArchive::m_Mode, mz_zip_reader_init_cfile(), ZIP_DELETE, ZIP_HANDLE, ZIP_NEW, and ZIP_THROW.
◆ OpenFileStream() [2/2] virtual void IArchive::OpenFileStream ( FILE * filestream, Uint8 archive_size =0
) pure virtual
Open archive from a FILE stream, beginning at the current file position.
Implemented in CArchiveZip.
◆ OpenMemory() [1/2] void CArchiveZip::OpenMemory ( const void * buf, size_t size ) virtualOpen archive located in memory for reading.
Implements IArchive.
Definition at line 200 of file archive_zip.cpp.
References buf, IArchive::eMemory, IArchive::eRead, IArchive::m_Location, IArchive::m_Mode, mz_zip_reader_init_mem(), ncbi::grid::netcache::search::fields::size, ZIP_DELETE, ZIP_HANDLE, ZIP_NEW, and ZIP_THROW.
◆ OpenMemory() [2/2] virtual void IArchive::OpenMemory ( const void * buf, size_t size ) pure virtual ◆ operator<<() [1/2] ◆ operator<<() [2/2]Nice TOC(table of contents) printout.
◆ operator=() [1/17] ◆ operator=() [2/17] ◆ operator=() [3/17] ◆ operator=() [4/17] ◆ operator=() [5/17]Private assignment operator to prohibit assignment.
◆ operator=() [6/17]Private assignment operator to prohibit assignment.
◆ operator=() [7/17] ◆ operator=() [8/17]Private assignment operator to prohibit assignment.
◆ operator=() [9/17]Private assignment operator to prohibit assignment.
◆ operator=() [10/17]Private assignment operator to prohibit assignment.
◆ operator=() [11/17] ◆ operator=() [12/17] ◆ operator=() [13/17] ◆ operator=() [14/17]Private assignment operator to prohibit assignment.
◆ operator=() [15/17]Private assignment operator to prohibit assignment.
◆ operator=() [16/17]Private assignment operator to prohibit assignment.
◆ operator=() [17/17]Private assignment operator to prohibit assignment.
◆ operator==() [1/2] ◆ operator==() [2/2] ◆ PendingCount() ERW_Result CNlmZipReader::PendingCount ( size_t * count ) virtualVia parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that are ready to be read from the input device without blocking.
Return eRW_Success if the number of pending bytes has been stored at the location pointed to by "count". Return eRW_NotImplemented if the number cannot be determined. Otherwise, return other eRW_... condition to reflect the problem ("*count" does not need to be updated in the case of non-eRW_Success). Note that if reporting 0 bytes ready, the method may return either both eRW_Success and zero "*count", or return eRW_NotImplemented alone.
Implements IReader.
Definition at line 287 of file reader_zlib.cpp.
References count, eRW_Success, CNlmZipReader::m_BufferEnd, and CNlmZipReader::m_BufferPos.
◆ Process() [1/9] virtual EStatus CBZip2Compressor::Process ( const char * in_buf, size_t in_len, char * out_buf, size_t out_size, size_t * in_avail, size_t * out_avail ) protectedvirtualCompress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implements CCompressionProcessor.
◆ Process() [2/9] virtual EStatus CBZip2Decompressor::Process ( const char * in_buf, size_t in_len, char * out_buf, size_t out_size, size_t * in_avail, size_t * out_avail ) protectedvirtualCompress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implements CCompressionProcessor.
◆ Process() [3/9]Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implements CCompressionProcessor.
Definition at line 1151 of file lzo.cpp.
References CLZOCompressor::CompressCache(), ERR_COMPRESS, CCompressionProcessor::eStatus_Error, CCompressionProcessor::eStatus_Overflow, CCompressionProcessor::eStatus_Success, CLZOCompressor::Flush(), CLZOCompression::FormatErrorMessage(), CCompression::GetFlags(), CCompressionProcessor::IncreaseProcessedSize(), CLZOCompression::m_BlockSize, CLZOCompressor::m_FileInfo, CLZOBuffer::m_InBuf, CLZOBuffer::m_InLen, CLZOBuffer::m_InSize, CLZOCompressor::m_NeedWriteHeader, CLZOBuffer::m_OutBegPtr, CLZOBuffer::m_OutEndPtr, CLZOBuffer::m_OutSize, min(), n, s_WriteLZOHeader(), and CCompression::SetError().
◆ Process() [4/9]Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implements CCompressionProcessor.
Definition at line 1374 of file lzo.cpp.
References _VERIFY, CLZODecompressor::DecompressCache(), CCompression::eMode_Decompress, CCompression::eMode_TransparentRead, CCompression::eMode_Unknown, ERR_COMPRESS, CCompressionProcessor::eStatus_EndOfData, CCompressionProcessor::eStatus_Error, CCompressionProcessor::eStatus_Overflow, CCompressionProcessor::eStatus_Success, CLZOCompression::EstimateCompressionBufferSize(), F_ISSET, CLZOCompression::fAllowTransparentRead, CLZODecompressor::Flush(), CLZOCompression::FormatErrorMessage(), CCompressionUtil::GetUI4(), CCompressionProcessor::IncreaseOutputSize(), CCompressionProcessor::IncreaseProcessedSize(), kMaxHeaderSize, CLZODecompressor::m_BlockLen, CLZOCompression::m_BlockSize, CLZODecompressor::m_Cache, CCompression::m_DecompressMode, CLZODecompressor::m_HeaderFlags, CLZODecompressor::m_HeaderLen, CLZOBuffer::m_InBuf, CLZOBuffer::m_InLen, CLZOBuffer::m_InSize, CLZOBuffer::m_OutBegPtr, CLZOBuffer::m_OutEndPtr, memmove, min(), n, CLZOBuffer::ResetBuffer(), s_CheckLZOHeader(), and CCompression::SetError().
Referenced by CLZODecompressor::Finish().
◆ Process() [5/9] virtual EStatus CZipCompressor::Process ( const char * in_buf, size_t in_len, char * out_buf, size_t out_size, size_t * in_avail, size_t * out_avail ) protectedvirtualCompress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implements CCompressionProcessor.
◆ Process() [6/9] virtual EStatus CZipDecompressor::Process ( const char * in_buf, size_t in_len, char * out_buf, size_t out_size, size_t * in_avail, size_t * out_avail ) protectedvirtualCompress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implements CCompressionProcessor.
◆ Process() [7/9] virtual EStatus CZipCloudflareCompressor::Process ( const char * in_buf, size_t in_len, char * out_buf, size_t out_size, size_t * in_avail, size_t * out_avail ) protectedvirtualCompress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implements CCompressionProcessor.
◆ Process() [8/9] virtual EStatus CZipCloudflareDecompressor::Process ( const char * in_buf, size_t in_len, char * out_buf, size_t out_size, size_t * in_avail, size_t * out_avail ) protectedvirtualCompress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implements CCompressionProcessor.
◆ Process() [9/9] virtual EStatus CCompressionProcessor::Process ( const char * in_buf, size_t in_len, char * out_buf, size_t out_size, size_t * in_avail, size_t * out_avail ) protectedpure virtualCompress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
It may introduce some output latency (reading input without producing any output).
Implemented in CZipCloudflareDecompressor, CZipCloudflareCompressor, CZipDecompressor, CZipCompressor, CTransparentProcessor, CLZODecompressor, CLZOCompressor, CBZip2Decompressor, and CBZip2Compressor.
Referenced by CCompressionStreambuf::ProcessStreamRead(), and CCompressionStreambuf::ProcessStreamWrite().
◆ Pushback() bool CNlmZipBtRdr::Pushback ( const char * data, size_t size ) virtual ◆ Read() [1/7] size_t CNlmZipBtRdr::Read ( char * buffer, size_t bufferLength ) virtualRead up to bufferLength bytes into buffer return amount of bytes read (if zero - see EndOfData())
Implements CByteSourceReader.
Definition at line 212 of file reader_zlib.cpp.
References _TRACE, buffer, cnt, CNlmZipBtRdr::eType_plain, CNlmZipBtRdr::eType_unknown, CNlmZipBtRdr::eType_zlib, kHeaderSize, CNlmZipBtRdr::m_Decompressor, CNlmZipBtRdr::m_Src, CNlmZipBtRdr::m_Type, NCBI_THROW, need_more, and CByteSourceReader::Read().
◆ Read() [2/7] ERW_Result CNlmZipReader::Read ( void * buf, size_t count, size_t * bytes_read =0
) virtual
Read as many as "count" bytes into a buffer pointed to by the "buf" argument.
Always store the number of bytes actually read (0 if read none) via the pointer "bytes_read", if provided non-NULL. Return non-eRW_Success code if EOF / error condition has been encountered during the operation (some data may have been read, nevertheless, and reflected in "*bytes_read"). Special case: if "count" is passed as 0, then the value of "buf" must be ignored, and no change should be made to the state of the input device (but may return non-eRW_Success to indicate that the input device has already been in an error condition).
Implements IReader.
Definition at line 294 of file reader_zlib.cpp.
References _ASSERT, CDynamicCharArray::Alloc(), CDynamicCharArray::At(), buffer, count, CNlmZipReader::eHeaderNone, eRW_Success, CNlmZipReader::kHeaderSize, CNlmZipReader::m_Buffer, CNlmZipReader::m_BufferEnd, CNlmZipReader::m_BufferPos, CNlmZipReader::m_Decompressor, CNlmZipReader::m_Header, CNlmZipReader::m_Reader, min(), IReader::Read(), result, CNlmZipReader::x_DecompressBuffer(), and CNlmZipReader::x_ReadZipHeader().
◆ Read() [3/7] virtual long CBZip2CompressionFile::Read ( void * buf, size_t len ) virtualRead data from compressed file.
Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf".
Implements CCompressionFile.
◆ Read() [4/7] long CLZOCompressionFile::Read ( void * buf, size_t len ) virtualRead data from compressed file.
Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf".
Implements CCompressionFile.
Definition at line 996 of file lzo.cpp.
References buf, CCompressionFile::eMode_Read, CCompressionStream::eRead, CCompressionProcessor::eStatus_Error, CCompressionIOStream::GetStatus(), CLZOCompressionFile::GetStreamError(), len, LIMIT_SIZE_PARAM_LONG, LIMIT_SIZE_PARAM_STREAMSIZE, CLZOCompressionFile::m_Mode, CLZOCompressionFile::m_Stream, and NCBI_THROW.
◆ Read() [5/7] virtual long CZipCompressionFile::Read ( void * buf, size_t len ) virtualRead data from compressed file.
Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf".
Implements CCompressionFile.
◆ Read() [6/7] virtual long CZipCloudflareCompressionFile::Read ( void * buf, size_t len ) virtualRead data from compressed file.
Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf".
Implements CCompressionFile.
◆ Read() [7/7] virtual long CCompressionFile::Read ( void * buf, size_t len ) pure virtual ◆ Reset() [1/2] void CArchiveEntryInfo::Reset ( void ) inline ◆ Reset() [2/2] void CCompressionProcessor::Reset ( void ) inlineprotected ◆ ResetBuffer() void CLZOBuffer::ResetBuffer ( size_t in_bufsize, size_t out_bufsize ) protectedReset internal state.
Definition at line 1085 of file lzo.cpp.
References _ASSERT, AutoArray< X, Del >::get(), CLZOBuffer::m_Buf, CLZOBuffer::m_InBuf, CLZOBuffer::m_InLen, CLZOBuffer::m_InSize, CLZOBuffer::m_OutBegPtr, CLZOBuffer::m_OutBuf, CLZOBuffer::m_OutEndPtr, CLZOBuffer::m_OutSize, and AutoArray< X, Del >::reset().
Referenced by CLZOCompressor::Init(), and CLZODecompressor::Process().
◆ RoundUp() size_t CCompression::SRecommendedBufferSizes::RoundUp ( size_t value, size_t precision ) inline ◆ Save()Save current opened/created archive to file.
Definition at line 1207 of file archive.cpp.
References ARCHIVE_CHECK, ARCHIVE_THROW, CFileIO::Close(), CFileIO_Base::eCreate, CFileIO_Base::eReadWrite, CArchiveMemory::m_Buf, CArchiveMemory::m_BufSize, NCBI_THROW, CFileIO::Open(), and CFileIO::Write().
◆ SetBaseDir() [1/2] ◆ SetBaseDir() [2/2] ◆ SetBlockSize() void CLZOCompression::SetBlockSize ( size_t block_size ) inline ◆ SetBusy() void CCompressionProcessor::SetBusy ( bool busy =true
) inlineprotected ◆ SetDictionary() [1/5] ◆ SetDictionary() [2/5] ◆ SetDictionary() [3/5]
Set a dictionary for all compression/decompression operations.
Using dictionary can significantly reduce the size of the compressed data. Refer to the C++ documentation how to choose/prepare a dictionary.
Implements ICompression.
◆ SetDictionary() [4/5]Set a dictionary for all compression/decompression operations.
Using dictionary can significantly reduce the size of the compressed data. Refer to the C++ documentation how to choose/prepare a dictionary.
Implements ICompression.
◆ SetDictionary() [5/5] ◆ SetError() [1/2] void CCompression::SetError ( int status, const char * description =0
) protected
Set last action error/status code and description.
Definition at line 91 of file compress.cpp.
References kEmptyStr, CCompression::m_ErrorCode, and CCompression::m_ErrorMsg.
Referenced by CLZOCompression::CompressBlock(), CLZOCompression::CompressBlockStream(), CLZOCompression::CompressBuffer(), CLZOCompression::CompressFile(), CLZOCompression::DecompressBlock(), CLZOCompression::DecompressBlockStream(), CLZOCompression::DecompressBuffer(), CLZOCompression::DecompressFile(), CLZOCompressor::End(), CLZODecompressor::End(), CLZOCompressor::Finish(), CLZODecompressor::Finish(), CLZOCompressionFile::GetStreamError(), CLZOCompressor::Init(), CLZODecompressor::Init(), CLZOCompressionFile::Open(), CLZOCompressor::Process(), CLZODecompressor::Process(), CLZOCompression::SetDictionary(), CCompression::x_CompressFile(), and CCompression::x_DecompressFile().
◆ SetError() [2/2] void CCompression::SetError ( int status, const string & description ) protected ◆ SetFileInfo() [1/3] ◆ SetFileInfo() [2/3]Set information about compressed file.
Used for compression of gzip files.
◆ SetFileInfo() [3/3]Set information about compressed file.
Used for compression of gzip files.
◆ SetFlags() [1/4] virtual void CArchive::SetFlags ( TFlags flags ) inlinevirtual ◆ SetFlags() [2/4] void CCompression::SetFlags ( TFlags flags ) virtual ◆ SetFlags() [3/4] void CTar::SetFlags ( TFlags flags ) inline ◆ SetFlags() [4/4] virtual void ICompression::SetFlags ( TFlags flags ) pure virtualImplemented in CCompression.
◆ SetLevel() [1/2] void CCompression::SetLevel ( ELevel level ) virtualGet/set compression level.
NOTE 1: Changing compression level after compression has begun will be ignored. NOTE 2: If the level is not supported by the underlying algorithm, then it will be translated to the nearest supported value.
Implements ICompression.
Definition at line 73 of file compress.cpp.
References CCompression::m_Level.
◆ SetLevel() [2/2] virtual void ICompression::SetLevel ( ELevel level ) pure virtualImplemented in CCompression.
◆ SetMask() [1/2]Set name mask.
The set of masks is used to process existing entries in the archive: both the extract and exclude masks apply to the list and extract operations, and only the exclude mask apply to the named append. If masks are not defined then all archive entries will be processed.
Definition at line 4587 of file tar.cpp.
References CTar::SMask::acase, eNoOwnership, int, NStr::IntToString(), CTar::m_Mask, CTar::SMask::mask, mask, CTar::SMask::owned, and TAR_THROW.
Referenced by CTar::~CTar().
◆ SetMask() [2/2]Set name mask for processing.
The set of masks is used to process existing entries in the archive, and apply to list, extract and append operations. If masks are not defined then all archive entries will be processed. Each "mask" is a set of inclusion and exclusion patterns, each of them can be a wildcard file mask or regular expression.
Definition at line 258 of file archive.cpp.
References CArchive::SMask::acase, ARCHIVE_THROW, CArchive::eFullPathMask, eNoOwnership, CArchive::ePatternMask, NStr::IntToString(), CArchive::m_MaskFullPath, CArchive::m_MaskPattern, CArchive::SMask::mask, mask, NULL, and CArchive::SMask::owned.
Referenced by CArchive::UnsetMask().
◆ SetMemoryLevel() [1/2] void CZipCompression::SetMemoryLevel ( int mem_level ) inline ◆ SetMemoryLevel() [2/2] void CZipCloudflareCompression::SetMemoryLevel ( int mem_level ) inline ◆ SetSmallDecompress() void CBZip2Compression::SetSmallDecompress ( bool small_decompres ) inlineSmall decompress.
If small decompress is set (TRUE), the library will use an alternative decompression algorithm which uses less memory but at the cost of decompressing more slowly (roughly speaking, half the speed, but the maximum memory requirement drops to around 2300k).
Definition at line 286 of file bzip2.hpp.
References CBZip2Compression::m_d_SmallDecompress.
◆ SetStrategy() [1/2] void CZipCompression::SetStrategy ( int strategy ) inlineCompression strategy.
The strategy parameter is used to tune the compression algorithm.
The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately. Used for compression only.
Definition at line 438 of file zlib.hpp.
References CZipCompression::GetStrategyDefault(), kZlibDefaultStrategy, and CZipCompression::m_c_Strategy.
◆ SetStrategy() [2/2] void CZipCloudflareCompression::SetStrategy ( int strategy ) inlineCompression strategy.
The strategy parameter is used to tune the compression algorithm.
The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately. Used for compression only.
Definition at line 432 of file zlib_cloudflare.hpp.
References CZipCloudflareCompression::GetStrategyDefault(), kZlibDefaultStrategy, and CZipCloudflareCompression::m_c_Strategy.
◆ SetWindowBits() [1/2] void CZipCompression::SetWindowBits ( int window_bits ) inlineWindow bits.
This parameter is the base two logarithm of the window size (the size of the history buffer). Larger values of this parameter result in better compression at the expense of memory usage. Used for compression and decompression. By default it is set to a maximum allowed values. Reducing windows bits from default can make to it unable to extract .gz files created by gzip.
Definition at line 475 of file zlib.hpp.
References CZipCompression::GetWindowBitsDefault(), kZlibDefaultWbits, and CZipCompression::m_cd_WindowBits.
Referenced by Deserialize< string, float >(), and Serialize< string, float >().
◆ SetWindowBits() [2/2] void CZipCloudflareCompression::SetWindowBits ( int window_bits ) inlineWindow bits.
This parameter is the base two logarithm of the window size (the size of the history buffer). Larger values of this parameter result in better compression at the expense of memory usage. Used for compression and decompression. By default it is set to a maximum allowed values. Reducing windows bits from default can make to it unable to extract .gz files created by gzip.
Definition at line 469 of file zlib_cloudflare.hpp.
References CZipCloudflareCompression::GetWindowBitsDefault(), kZlibDefaultWbits, and CZipCloudflareCompression::m_cd_WindowBits.
◆ SetWorkFactor() void CBZip2Compression::SetWorkFactor ( int work_factor ) inlineWork factor.
This parameter controls how the compression phase behaves when presented with worst case, highly repetitive, input data. If compression runs into difficulties caused by repetitive data, the library switches from the standard sorting algorithm to a fallback algorithm. The fallback is slower than the standard algorithm by perhaps a factor of three, but always behaves reasonably, no matter how bad the input. Lower values of work_factor reduce the amount of effort the standard algorithm will expend before resorting to the fallback. You should set this parameter carefully; too low, and many inputs will be handled by the fallback algorithm and so compress rather slowly, too high, and your average-to-worst case compression times can become very large. The default value 30 gives reasonable behaviour over a wide range of circumstances. Allowable values range from 0 to 250 inclusive. 0 is a special case, equivalent to using the default value of 30.
Definition at line 273 of file bzip2.hpp.
References CBZip2Compression::m_c_WorkFactor.
◆ SFileInfo() [1/3] CLZOCompression::SFileInfo::SFileInfo ( void ) inlineDefinition at line 363 of file lzo.hpp.
◆ SFileInfo() [2/3] CZipCompression::SFileInfo::SFileInfo ( void ) inlineDefinition at line 359 of file zlib.hpp.
◆ SFileInfo() [3/3] CZipCloudflareCompression::SFileInfo::SFileInfo ( void ) inlineDefinition at line 353 of file zlib_cloudflare.hpp.
◆ SkipEntry() [1/3] ◆ SkipEntry() [2/3]Don't need to be implemented for ZIP format.
Implemented in CArchiveZip.
◆ SkipEntry() [3/3] void CArchive::SkipEntry ( void ) protectedvirtual ◆ SMask() [1/2] CArchive::SMask::SMask ( void ) inlineDefinition at line 411 of file archive.hpp.
◆ SMask() [2/2] CTar::SMask::SMask ( void ) inlineDefinition at line 696 of file tar.hpp.
◆ StoreUI2() void CCompressionUtil::StoreUI2 ( void * buf, unsigned long value ) static ◆ StoreUI4() void CCompressionUtil::StoreUI4 ( void * buf, unsigned long value ) static ◆ Test() [1/2] ◆ Test() [2/2] ◆ TestEntry() [1/3]Verify entry integrity.
Implements IArchive.
Definition at line 478 of file archive_zip.cpp.
References _ASSERT, CDirEntry::eDir, IArchive::eRead, info, IArchive::m_Mode, mz_zip_reader_extract_to_callback(), s_ZipTestCallback(), NStr::SizetToString(), ZIP_CHECK, ZIP_HANDLE, and ZIP_THROW.
◆ TestEntry() [2/3]Verify entry integrity.
Implemented in CArchiveZip.
◆ TestEntry() [3/3] void CArchive::TestEntry ( void ) protectedvirtualDefinition at line 505 of file archive.cpp.
References ARCHIVE, ARCHIVE_THROW1, CDirEntry::eBlockSpecial, CDirEntry::eCharSpecial, CDirEntry::eDir, CDirEntry::eFile, CDirEntry::eLink, CDirEntry::ePipe, CDirEntry::eUnknown, F_ISSET, CArchive::fSkipUnsupported, CArchiveEntryInfo::GetType(), and CArchive::m_Current.
Referenced by CArchive::x_ReadAndProcess().
◆ UnsetMask() [1/2] ◆ UnsetMask() [2/2] void CArchive::UnsetMask ( void ) ◆ Update()Look whether more recent copies of the archive members are available in the file system, and if so, append them to the archive:
Definition at line 835 of file tar.hpp.
References CTar::eUpdate, CTar::x_Append(), CTar::x_Open(), and CTar::x_ReadAndProcess().
◆ Write() [1/5] virtual long CBZip2CompressionFile::Write ( const void * buf, size_t len ) virtualWrite data to compressed file.
Writes the given number of uncompressed bytes from the buffer into the compressed file.
Implements CCompressionFile.
◆ Write() [2/5] long CLZOCompressionFile::Write ( const void * buf, size_t len ) virtualWrite data to compressed file.
Writes the given number of uncompressed bytes from the buffer into the compressed file.
Implements CCompressionFile.
Definition at line 1027 of file lzo.cpp.
References buf, CCompressionFile::eMode_Write, CLZOCompressionFile::GetStreamError(), len, LIMIT_SIZE_PARAM_LONG, LIMIT_SIZE_PARAM_STREAMSIZE, CLZOCompressionFile::m_Mode, CLZOCompressionFile::m_Stream, and NCBI_THROW.
◆ Write() [3/5] virtual long CZipCompressionFile::Write ( const void * buf, size_t len ) virtualWrite data to compressed file.
Writes the given number of uncompressed bytes from the buffer into the compressed file.
Implements CCompressionFile.
◆ Write() [4/5] virtual long CZipCloudflareCompressionFile::Write ( const void * buf, size_t len ) virtualWrite data to compressed file.
Writes the given number of uncompressed bytes from the buffer into the compressed file.
Implements CCompressionFile.
◆ Write() [5/5] virtual long CCompressionFile::Write ( const void * buf, size_t len ) pure virtual ◆ x_Append() [1/3]Definition at line 4411 of file tar.cpp.
References CDirEntry::SStat::atime_nsec, CDirEntry::SStat::ctime_nsec, CTarEntryInfo::eFile, NStr::EndsWith(), entries, eRead, NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, fTarGRead, fTarGWrite, fTarORead, fTarOWrite, fTarURead, fTarUWrite, CTime::GetCurrentTimeT(), CUnixFeature::GetGroupNameByGID(), CCurrentProcess::GetHandle(), CTarEntryInfo::GetName(), CWinSecurity::GetObjectOwner(), CUnixFeature::GetUserNameByUID(), kEmptyStr, CTar::m_Current, CTarEntryInfo::m_GroupName, CTarEntryInfo::m_Name, CTarEntryInfo::m_Pos, CTarEntryInfo::m_Stat, CTar::m_StreamPos, CTarEntryInfo::m_Type, CTarEntryInfo::m_UserName, CDirEntry::SStat::mtime_nsec, CDirEntry::SStat::orig, s_ModeToTar(), s_TarToMode(), s_ToArchiveName(), NStr::Split(), TAR_THROW, and CTar::x_AppendStream().
◆ x_Append() [2/3]Definition at line 4191 of file tar.cpp.
References _ASSERT, _TROUBLE, CNcbiError::Code(), CDirEntry::eBlockSpecial, CDirEntry::eCharSpecial, CDirEntry::eDir, CDirEntry::eDoor, CTar::eExcludeMask, CDirEntry::eFile, eFollowLinks, CTarEntryInfo::eHardLink, eIgnoreLinks, CDir::eIgnoreRecursive, entries, CDirEntry::ePipe, eRead, Error(), CDirEntry::eSocket, CDirEntry::eSymLink, CTarEntryInfo::eSymLink, CDirEntry::eUnknown, CTar::fEqualTypes, CTar::fFollowLinks, CTar::fIgnoreUnreadable, CTar::fOverwrite, CTar::fSkipUnsupported, NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, CTar::fUpdate, CTarEntryInfo::GetGroupName(), CNcbiError::GetLast(), CTarEntryInfo::GetLinkName(), CTarEntryInfo::GetModificationCTime(), CDirEntry::GetOwner(), CDirEntry::GetType(), CTarEntryInfo::GetType(), CTarEntryInfo::GetUserName(), NStr::IntToString(), ITERATE, kEmptyStr, CDirEntry::LookupLink(), CTar::m_BaseDir, CTar::m_Current, CTar::m_Flags, CTarEntryInfo::m_GroupName, CTarEntryInfo::m_LinkName, CTar::m_Mask, CTarEntryInfo::m_Name, CTarEntryInfo::m_Path, CTarEntryInfo::m_Stat, CTar::m_StreamPos, CTarEntryInfo::m_Type, CTarEntryInfo::m_UserName, mask, CDirEntry::SStat::orig, out(), REVERSE_ITERATE, s_MatchExcludeMask(), s_ModeToTar(), s_OSReason(), s_ToArchiveName(), s_ToFilesystemPath(), NStr::Split(), st(), CDirEntry::Stat(), TAR_POST, TAR_THROW, NStr::UIntToString(), Warning(), CTar::x_AppendFile(), and CTar::x_WriteEntryInfo().
Referenced by CTar::Append(), and CTar::Update().
◆ x_Append() [3/3]Definition at line 895 of file archive.cpp.
References _ASSERT, _TROUBLE, CArchive::SMask::acase, ARCHIVE, ARCHIVE_THROW, CDirEntry::eBlockSpecial, CDirEntry::eCharSpecial, CDirEntry::eDir, CDirEntry::eDoor, CArchive::eFeature_AbsolutePath, CDirEntry::eFile, eFollowLinks, CTarEntryInfo::eHardLink, eIgnoreLinks, CDir::eIgnoreRecursive, CDirEntry::eLink, entries, CDirEntry::ePipe, CDirEntry::eSocket, CDirEntry::eUnknown, CArchive::eZip, F_ISSET, CArchive::fEqualTypes, CArchive::fFollowLinks, CArchive::fOverwrite, CArchive::fSkipUnsupported, NStr::fSplit_MergeDelimiters, CArchive::fUpdate, CDir::GetEntries(), CArchiveEntryInfo::GetGroupName(), CArchiveEntryInfo::GetLinkName(), CArchiveEntryInfo::GetModificationTime(), CDirEntry::GetOwner(), CDirEntry::GetType(), CArchiveEntryInfo::GetType(), CArchiveEntryInfo::GetUserName(), CArchive::HaveSupport(), ITERATE, kEmptyStr, CDirEntry::LookupLink(), CArchive::m_BaseDir, CArchiveEntryInfo::m_Comment, CArchive::m_Current, CArchive::m_Flags, CArchive::m_Format, CArchiveEntryInfo::m_GroupName, CArchiveEntryInfo::m_LinkName, CArchive::m_MaskFullPath, CArchive::m_MaskPattern, CArchive::m_Modified, CArchiveEntryInfo::m_Name, CArchiveEntryInfo::m_Stat, CArchiveEntryInfo::m_Type, CArchiveEntryInfo::m_UserName, CArchive::SMask::mask, CMask::Match(), match(), out(), REVERSE_ITERATE, s_ModeToTar(), s_OSReason(), s_ToArchiveName(), s_ToFilesystemPath(), NStr::Split(), st(), CDirEntry::Stat(), type, NStr::UIntToString(), and CArchive::x_AppendEntry().
Referenced by CArchive::Append().
◆ x_AppendEntry() ◆ x_AppendFile()Definition at line 4561 of file tar.cpp.
References _ASSERT, CTarEntryInfo::eFile, Error(), CTar::fIgnoreUnreadable, file, CTarEntryInfo::GetType(), in(), CTar::m_Current, CTar::m_Flags, s_OSReason(), TAR_POST, TAR_THROW, and CTar::x_AppendStream().
Referenced by CTar::x_Append().
◆ x_AppendStream()Definition at line 4506 of file tar.cpp.
References _ASSERT, ALIGN_SIZE, CTarEntryInfo::eFile, eRead, failure, CTarEntryInfo::GetSize(), CTarEntryInfo::GetType(), CTar::m_Buffer, CTar::m_BufferPos, CTar::m_BufferSize, CTar::m_Current, CTar::m_StreamPos, OFFSET_OF, s_OSReason(), ncbi::grid::netcache::search::fields::size, TAR_THROW, CTar::x_WriteArchive(), and CTar::x_WriteEntryInfo().
Referenced by CTar::x_Append(), and CTar::x_AppendFile().
◆ x_Backspace() void CTar::x_Backspace ( EAction action ) privateDefinition at line 2852 of file tar.cpp.
References _ASSERT, BLOCK_OF, BLOCK_SIZE, CT_OFF_TYPE, CT_POS_TYPE, CTar::eAppend, Error(), CTar::eUpdate, CTar::m_BufferPos, CTar::m_BufferSize, CTar::m_Current, CTar::m_FileStream, CTarEntryInfo::m_Name, CTar::m_Stream, CTar::m_StreamPos, CTar::m_ZeroBlockCount, NcbiBadbit, OFFSET_OF, s_SetStateSafe(), SIZE_OF, TAR_POST, Warning(), and CTar::x_ReadArchive().
Referenced by CTar::x_ReadAndProcess().
◆ x_Close() void CTar::x_Close ( bool truncate ) privateDefinition at line 1486 of file tar.cpp.
References CTar::eNone, Error(), CTar::fTarfileNoTruncate, CTar::m_Bad, CTar::m_BufferPos, CTar::m_FileName, CTar::m_FileStream, CTar::m_Flags, CTar::m_Modified, CTar::m_OpenMode, CTar::m_StreamPos, s_OSReason(), s_TruncateFile(), and TAR_POST.
Referenced by CTar::Close(), CTar::x_Open(), and CTar::~CTar().
◆ x_CompressFile() ◆ x_DecompressBuffer() ERW_Result CNlmZipReader::x_DecompressBuffer ( void ) protectedDefinition at line 393 of file reader_zlib.cpp.
References CDynamicCharArray::Alloc(), CDynamicCharArray::At(), eRW_Eof, eRW_Error, eRW_Success, i, CNlmZipReader::m_Buffer, CNlmZipReader::m_BufferEnd, CNlmZipReader::m_BufferPos, CNlmZipReader::m_Compressed, CNlmZipReader::m_Decompressor, result, and CNlmZipReader::x_Read().
Referenced by CNlmZipReader::Read().
◆ x_DecompressFile() ◆ x_ExtractEntry() [1/2]Definition at line 685 of file archive.cpp.
References ARCHIVE_THROW, ARCHIVE_THROW1, CDirEntry::Backup(), CDirEntry::ConcatPath(), CDirEntry::CreateObject(), CDirEntry::eBackup_Rename, CDirEntry::eDir, CArchive::eExtract, CDirEntry::eFile, CDirEntry::eLink, CDirEntry::eTmpFileCreate, CDirEntry::eUnknown, CArchive::ExtractEntry(), F_ISSET, CArchive::fBackup, CArchive::fEqualTypes, CArchive::fFollowLinks, CArchive::fOverwrite, CDirEntry::fRF_Default, CDirEntry::fRF_Overwrite, CArchive::fUpdate, CArchiveEntryInfo::GetModificationTime(), CArchiveEntryInfo::GetName(), CDirEntry::GetTmpNameEx(), CArchiveEntryInfo::GetType(), ITERATE, kEmptyStr, CArchive::m_BaseDir, CArchive::m_Current, CDirEntry::NormalizePath(), AutoPtr< X, Del >::reset(), s_OSReason(), tmp, and CArchive::x_RestoreAttrs().
Referenced by CArchive::x_ReadAndProcess().
◆ x_ExtractEntry() [2/2]Definition at line 3582 of file tar.cpp.
References _ASSERT, _TROUBLE, CNcbiError::Code(), CDirEntry::Copy(), CSymLink::Create(), CDir::CreatePath(), CTarEntryInfo::eBlockDev, CTarEntryInfo::eCharDev, CTar::eCreate, CTarEntryInfo::eDir, CTarEntryInfo::eFile, CTarEntryInfo::eGNULongLink, CTarEntryInfo::eGNULongName, CTarEntryInfo::eHardLink, CTarEntryInfo::ePAXHeader, CTarEntryInfo::ePipe, Error(), CTarEntryInfo::eSparseFile, CTarEntryInfo::eSymLink, CDirEntry::eUnknown, CTarEntryInfo::eUnknown, CTarEntryInfo::eVolHeader, CDirEntry::Exists(), CDirEntry::fCF_Overwrite, CDirEntry::fCF_PreserveAll, CTar::fKeepAbsolutePath, CTar::fPreserveAll, CTar::fSkipUnsupported, CDirEntry::GetDir(), CNcbiError::GetLast(), CTarEntryInfo::GetLinkName(), CTarEntryInfo::GetMode(), CTarEntryInfo::GetName(), CDirEntry::GetPath(), CDirEntry::GetType(), CTarEntryInfo::GetType(), NStr::IntToString(), CTar::m_BaseDir, CTar::m_Current, CTar::m_Flags, CTarEntryInfo::m_Stat, CDirEntry::SStat::orig, s_OSReason(), s_ToFilesystemPath(), CNcbiError::SetErrno(), ncbi::grid::netcache::search::fields::size, string, TAR_POST, TAR_THROW, Warning(), CTar::x_ExtractPlainFile(), CTar::x_ExtractSparseFile(), and CTar::x_RestoreAttrs().
Referenced by CTar::x_ProcessEntry().
◆ x_ExtractPlainFile()Definition at line 3788 of file tar.cpp.
References _ASSERT, ALIGN_SIZE, data, CTar::eCreate, eRead, failure, CTar::fPreserveMode, fTarURead, fTarUWrite, CDirEntry::GetPath(), CTar::m_BufferSize, CTar::m_Current, CTar::m_Flags, CTar::m_StreamPos, out(), s_OSReason(), ncbi::grid::netcache::search::fields::size, TAR_THROW, true, trunc, CTar::x_ReadArchive(), and CTar::x_RestoreAttrs().
Referenced by CTar::x_ExtractEntry().
◆ x_ExtractSparseFile()Definition at line 3890 of file tar.cpp.
References _ASSERT, _T_STDSTRING, ALIGN_SIZE, BLOCK_SIZE, data, done, dump, CTar::eCreate, eRead, Error(), NStr::fConvErr_NoErrMessage, NStr::fConvErr_NoThrow, fp, CTar::fPreserveMode, fseek, fTarURead, fTarUWrite, CTarEntryInfo::GetName(), CDirEntry::GetPath(), i, CTar::m_BufferSize, CTar::m_Current, CTar::m_FileName, CTar::m_Flags, CTar::m_StreamPos, n, NCBI_FILE_WO, NULL, NStr::NumericToString(), CDirEntry::Remove(), s_DumpSparse(), s_OSReason(), s_TruncateFile(), SEEK_SET, CNcbiError::SetErrno(), ncbi::grid::netcache::search::fields::size, str(), string, NStr::StringToUInt8(), TAR_POST, TAR_THROW, true, NStr::UIntToString(), val, CTar::x_ReadArchive(), CTar::x_ReadLine(), and CTar::x_RestoreAttrs().
Referenced by CTar::x_ExtractEntry(), and CTar::x_ProcessEntry().
◆ x_Flush()Definition at line 1397 of file tar.cpp.
References _ASSERT, BLOCK_OF, BLOCK_SIZE, Error(), CTar::fStreamPipeThrough, CTar::m_Bad, CTar::m_Buffer, CTar::m_BufferPos, CTar::m_BufferSize, CTar::m_Current, CTar::m_FileStream, CTar::m_Flags, CTar::m_Modified, CTarEntryInfo::m_Name, CTar::m_OpenMode, CTar::m_Stream, CTar::m_StreamPos, CTar::m_ZeroBlockCount, NcbiBadbit, OFFSET_OF, pad(), s_OSReason(), s_SetStateSafe(), TAR_POST, TAR_THROW, and CTar::x_WriteArchive().
Referenced by CTar::Close(), CTar::x_Open(), and CTar::~CTar().
◆ x_Init() void CTar::x_Init ( void ) private ◆ x_Open() [1/2] void CArchive::x_Open ( EAction action ) protectedDefinition at line 564 of file archive.cpp.
References ARCHIVE_THROW, CArchive::Close(), CArchive::eAppend, CArchive::eCreate, IArchive::eFileStream, CArchive::eRW, CArchive::eWO, CArchive::m_Location, CArchive::m_OpenMode, and CArchive::Open().
Referenced by CArchive::Append(), CArchive::AppendFileFromMemory(), CArchiveMemory::Create(), CArchive::Create(), CArchive::Extract(), CArchive::ExtractFileToCallback(), CArchive::ExtractFileToMemory(), CArchive::List(), and CArchive::Test().
◆ x_Open() [2/2] void CTar::x_Open ( EAction action ) privateDefinition at line 1507 of file tar.cpp.
References _ASSERT, _TROUBLE, CTar::eAppend, CTar::eCreate, CTar::eInternal, CTar::eNone, CTar::eRO, CTar::eRW, CTar::eWO, CTar::fSlowSkipWithRead, CTar::fStreamPipeThrough, HANDLE, in(), CTar::m_Bad, CTar::m_BufferPos, CTar::m_Current, CTar::m_FileName, CTar::m_FileStream, CTar::m_Flags, CTar::m_Modified, CTarEntryInfo::m_Name, CTar::m_OpenMode, CTar::m_Stream, CTar::m_StreamPos, NcbiEofbit, out(), s_OSReason(), TAR_POST, TAR_THROW, trunc, Warning(), CTar::x_Close(), CTar::x_Flush(), and CTar::x_ReadAndProcess().
Referenced by CTar::Append(), CTar::Create(), CTar::Extract(), CTar::GetNextEntryInfo(), CTar::List(), CTar::Test(), and CTar::Update().
◆ x_PackCurrentName()Definition at line 2778 of file tar.cpp.
References _ASSERT, TTarBlock::buffer, CTar::fLongNameSupplement, CTar::fStandardHeaderOnly, CTarEntryInfo::GetLinkName(), CTarEntryInfo::GetName(), STarHeader::gid, TTarBlock::header, i, len, STarHeader::linkname, CTar::m_Buffer, CTar::m_BufferPos, CTar::m_BufferSize, CTar::m_Current, CTar::m_Flags, STarHeader::magic, STarHeader::mode, STarHeader::mtime, STarHeader::name, OFFSET_OF, STarHeader::prefix, s_EncodeUint8(), s_NumToOctal(), s_TarChecksum(), ncbi::grid::netcache::search::fields::size, STarHeader::size, sx_Signature(), STarHeader::typeflag, STarHeader::uid, and CTar::x_WriteArchive().
Referenced by CTar::x_WriteEntryInfo().
◆ x_ParsePAXData()Definition at line 1925 of file tar.cpp.
References _ASSERT, CDirEntry::SStat::atime_nsec, CDirEntry::SStat::ctime_nsec, data, done, dummy, CTar::eContinue, CTar::eFailure, Error(), fPAXAtime, fPAXCtime, fPAXGid, fPAXMtime, fPAXNone, fPAXSize, fPAXSparse, fPAXSparseGNU_1_0, fPAXUid, CTar::fSparseUnsupported, isdigit(), ncbi::grid::netcache::search::fields::key, l(), len, CTar::m_Current, CTar::m_Flags, CTarEntryInfo::m_GroupName, CTarEntryInfo::m_LinkName, CTarEntryInfo::m_Name, CTarEntryInfo::m_Pos, CTarEntryInfo::m_Stat, CTarEntryInfo::m_UserName, CDirEntry::SStat::mtime_nsec, n, NStr::NumericToString(), CDirEntry::SStat::orig, s_AllLowerCase(), s_FraqToNanosec(), s_ParsePAXNumeric(), ncbi::grid::netcache::search::fields::size, str(), TAR_POST, val, and Warning().
Referenced by CTar::x_ReadEntryInfo().
◆ x_ProcessEntry()Definition at line 3337 of file tar.cpp.
References ALIGN_SIZE, BLOCK_OF, CNcbiError::Code(), NStr::CompareCase(), NStr::CompareNocase(), CDirEntry::CreateObject(), CDirEntry::eBackup_Rename, CDirEntry::eDir, CTarEntryInfo::eDir, CTar::eExtract, CDirEntry::eFile, eFollowLinks, CTarEntryInfo::eHardLink, CDirEntry::eIfAbsent_Throw, eIgnoreLinks, entries, Error(), CTarEntryInfo::eSparseFile, CTarEntryInfo::eSymLink, CTar::eTest, CDirEntry::eUnknown, CTarEntryInfo::eUnknown, CTar::fBackup, CTar::fConflictOverwrite, CTar::fDumpEntryHeaders, CTar::fEqualTypes, CTar::fFollowLinks, CTar::fIgnoreNameCase, CTar::fKeepAbsolutePath, CTar::fOverwrite, CTar::fUpdate, CNcbiError::GetLast(), CTarEntryInfo::GetLinkName(), CTarEntryInfo::GetModificationCTime(), CTarEntryInfo::GetName(), CTarEntryInfo::GetType(), ITERATE, kEmptyStr, CTar::m_BaseDir, CTar::m_Current, CTar::m_Flags, CTarEntryInfo::m_Path, CDirEntry::SStat::orig, AutoPtr< X, Del >::reset(), s_OSReason(), s_ToFilesystemPath(), ncbi::grid::netcache::search::fields::size, CDirEntry::Stat(), TAR_POST, TAR_THROW, tmp, x_DropTrailingSlashes(), CTar::x_ExtractEntry(), CTar::x_ExtractSparseFile(), and CTar::x_Skip().
Referenced by CTar::x_ReadAndProcess().
◆ x_Read() ERW_Result CNlmZipReader::x_Read ( char * buffer, size_t count, size_t * bytes_read ) protected ◆ x_ReadAndProcess() [1/2]Definition at line 605 of file archive.cpp.
References _ASSERT, _TROUBLE, CArchive::SMask::acase, ARCHIVE, ARCHIVE_THROW, CArchive::Checkpoint(), CArchive::eExtract, CArchive::eList, entries, CArchive::eTest, NStr::fSplit_MergeDelimiters, i, ITERATE, CArchive::m_Current, CArchive::m_MaskFullPath, CArchive::m_MaskPattern, CArchiveEntryInfo::m_Name, CArchive::SMask::mask, CMask::Match(), match(), n, CArchiveEntryInfo::Reset(), CArchive::SkipEntry(), NStr::Split(), CArchive::TestEntry(), and CArchive::x_ExtractEntry().
Referenced by CArchive::Extract(), CArchive::List(), and CArchive::Test().
◆ x_ReadAndProcess() [2/2]Definition at line 2940 of file tar.cpp.
References _ASSERT, _TROUBLE, CTar::SMask::acase, CDirEntry::SStat::atime_nsec, BLOCK_SIZE, CTar::Checkpoint(), CDirEntry::SStat::ctime_nsec, done, CTar::eAppend, CTar::eContinue, CTar::eEOF, CTar::eExcludeMask, CTar::eExtract, CTar::eExtractMask, CTar::eFailure, CTarEntryInfo::eFile, CTarEntryInfo::eGNULongLink, CTarEntryInfo::eGNULongName, CTar::eInternal, CTar::eList, CTarEntryInfo::ePAXHeader, eRead, Error(), CTarEntryInfo::eSparseFile, CTar::eSuccess, CTar::eTest, CTar::eUndefined, CTarEntryInfo::eUnknown, CTar::eUpdate, CTar::eZeroBlock, false, CTar::fDumpEntryHeaders, CTar::fIgnoreZeroBlocks, fPAXAtime, fPAXCtime, fPAXGid, fPAXMtime, fPAXNone, fPAXSize, fPAXSparse, fPAXSparseGNU_1_0, fPAXUid, NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, CTarEntryInfo::GetGroupName(), CTarEntryInfo::GetLinkName(), CTarEntryInfo::GetName(), CTarEntryInfo::GetSize(), CTarEntryInfo::GetType(), CTarEntryInfo::GetUserName(), if(), CTar::m_BufferSize, CTar::m_Current, CTar::m_FileName, CTar::m_Flags, CTarEntryInfo::m_GroupName, CTarEntryInfo::m_HeaderSize, CTarEntryInfo::m_LinkName, CTar::m_Mask, CTarEntryInfo::m_Name, CTarEntryInfo::m_Pos, CTarEntryInfo::m_Stat, CTar::m_StreamPos, CTarEntryInfo::m_Type, CTarEntryInfo::m_UserName, CTar::m_ZeroBlockCount, CTar::SMask::mask, mask, match(), CDirEntry::SStat::mtime_nsec, NCBI_THROW, OFFSET_OF, CDirEntry::SStat::orig, s_DumpZero(), s_MatchExcludeMask(), ncbi::grid::netcache::search::fields::size, SIZE_OF, NStr::Split(), TAR_POST, TAR_THROW, Warning(), CTar::x_Backspace(), CTar::x_ProcessEntry(), and CTar::x_ReadEntryInfo().
Referenced by CTar::Extract(), CTar::GetNextEntryInfo(), CTar::List(), CTar::Test(), CTar::Update(), and CTar::x_Open().
◆ x_ReadArchive() const char * CTar::x_ReadArchive ( size_t & n ) privateDefinition at line 1674 of file tar.cpp.
References _ASSERT, ALIGN_SIZE, Error(), failure, CTar::fDumpEntryHeaders, CTar::fStreamPipeThrough, CTar::m_Buffer, CTar::m_BufferPos, CTar::m_BufferSize, CTar::m_FileStream, CTar::m_Flags, CTar::m_Stream, CTar::m_StreamPos, CTar::m_ZeroBlockCount, n, NcbiBadbit, NcbiEofbit, NStr::NumericToString(), OFFSET_OF, s_SetStateSafe(), TAR_POST, Warning(), and CTar::x_WriteArchive().
Referenced by CTarReader::Read(), CTar::x_Backspace(), CTar::x_ExtractPlainFile(), CTar::x_ExtractSparseFile(), CTar::x_ReadEntryInfo(), CTar::x_ReadLine(), and CTar::x_Skip().
◆ x_ReadEntryInfo()Definition at line 2138 of file tar.cpp.
References _ASSERT, _TROUBLE, ALIGN_SIZE, BLOCK_SIZE, TTarBlock::buffer, STarHeader::checksum, CDirEntry::ConcatPath(), Critical(), data, STarHeader::devmajor, STarHeader::devminor, dump, CTarEntryInfo::eBlockDev, CTarEntryInfo::eCharDev, CTar::eContinue, eDiag_Info, CTarEntryInfo::eDir, CTar::eEOF, CTar::eFailure, CTarEntryInfo::eFile, CTarEntryInfo::eGNULongLink, CTarEntryInfo::eGNULongName, CTarEntryInfo::eHardLink, CTarEntryInfo::ePAXHeader, CTarEntryInfo::ePipe, eRead, ERR_POST, ERR_POST_ONCE, Error(), CTarEntryInfo::eSparseFile, CTar::eSuccess, CTarEntryInfo::eSymLink, eTar_Legacy, eTar_OldGNU, eTar_Posix, eTar_Star, eTar_Unknown, eTar_Ustar, CTarEntryInfo::eUnknown, CTarEntryInfo::eVolHeader, CTar::eZeroBlock, CTar::fDumpEntryHeaders, NStr::fNewLine_Passthru, NStr::fNewLine_Quote, CTarEntryInfo::GetName(), CTarEntryInfo::GetSize(), CTarEntryInfo::GetType(), STarHeader::gid, STarHeader::gname, STarHeader::gnu, TTarBlock::header, i, Info(), int, kEmptyStr, STarHeader::linkname, CTar::m_BufferSize, CTar::m_Current, CTar::m_FileName, CTar::m_Flags, CTarEntryInfo::m_GroupName, CTarEntryInfo::m_HeaderSize, CTarEntryInfo::m_LinkName, CTarEntryInfo::m_Name, CTarEntryInfo::m_Pos, CTarEntryInfo::m_Stat, CTar::m_StreamPos, CTarEntryInfo::m_Type, CTarEntryInfo::m_UserName, STarHeader::magic, memcchr(), STarHeader::mode, STarHeader::mtime, STarHeader::name, NStr::NumericToString(), CDirEntry::SStat::orig, STarHeader::prefix, NStr::PrintableString(), s_DecodeUint8(), s_Dump(), s_DumpSparse(), s_IsOctal(), s_Length(), s_OctalToNum(), s_PositionAsString(), SetDiagPostLevel(), STarHeader::size, STarHeader::star, util::strcmp(), TAR_POST, TAR_THROW, TAR_THROW_EX, toupper(), Trace(), STarHeader::typeflag, STarHeader::uid, STarHeader::uname, val, Warning(), CTar::x_ParsePAXData(), and CTar::x_ReadArchive().
Referenced by CTar::x_ReadAndProcess().
◆ x_ReadLine() ◆ x_ReadZipHeader() size_t CNlmZipReader::x_ReadZipHeader ( char * buffer ) protected ◆ x_RestoreAttrs() [1/2]Definition at line 804 of file archive.cpp.
References ARCHIVE_THROW, CDirEntry::ConcatPath(), CDirEntry::CreateObject(), CDirEntry::eBlockSpecial, CDirEntry::eCharSpecial, eIgnoreLinks, CDirEntry::eLink, CDirEntry::ePipe, F_ISSET, failed, CArchive::fPreserveMode, CArchive::fPreserveOwner, CArchive::fPreserveTime, CDirEntry::GetPath(), info, kEmptyStr, CArchive::m_BaseDir, CDirEntry::ModeFromModeT(), CDirEntry::NormalizePath(), s_OSReason(), CDirEntry::SetMode(), CDirEntry::SetOwner(), CDirEntry::SetTimeT(), and NStr::UIntToString().
Referenced by CArchive::Extract(), and CArchive::x_ExtractEntry().
◆ x_RestoreAttrs() [2/2]Definition at line 4074 of file tar.cpp.
References _ASSERT, CNcbiError::Code(), done, CTarEntryInfo::eBlockDev, CTarEntryInfo::eCharDev, eIgnoreLinks, CTarEntryInfo::ePipe, CTarEntryInfo::eSymLink, failed, CTar::fPreserveMode, CTar::fPreserveOwner, CTar::fPreserveTime, CNcbiError::GetLast(), CDirEntry::GetPath(), info, kEmptyStr, s_OSReason(), s_TarToMode(), CNcbiError::SetFromErrno(), CDirEntry::SetMode(), CTime::SetNanoSecond(), CDirEntry::SetOwner(), CDirEntry::SetTime(), TAR_THROW, and NStr::UIntToString().
Referenced by CTar::Extract(), CTar::x_ExtractEntry(), CTar::x_ExtractPlainFile(), and CTar::x_ExtractSparseFile().
◆ x_Skip() void CTar::x_Skip ( Uint8 blocks ) privateDefinition at line 3538 of file tar.cpp.
References _ASSERT, ALIGN_SIZE, BLOCK_OF, blocks, CT_OFF_TYPE, CT_POS_TYPE, eRead, CTar::fSlowSkipWithRead, CTar::fStreamPipeThrough, CTar::m_BufferPos, CTar::m_BufferSize, CTar::m_FileStream, CTar::m_Flags, CTar::m_Stream, CTar::m_StreamPos, OFFSET_OF, SIZE_OF, TAR_POST, TAR_THROW, Warning(), and CTar::x_ReadArchive().
Referenced by CTar::GetNextEntryInfo(), and CTar::x_ProcessEntry().
◆ x_StartDecompressor() void CNlmZipReader::x_StartDecompressor ( void ) protected ◆ x_StartPlain() void CNlmZipReader::x_StartPlain ( void ) protected ◆ x_WriteArchive() void CTar::x_WriteArchive ( size_t n, const char * buffer =0
) private
Definition at line 1758 of file tar.cpp.
References _ASSERT, ALIGN_SIZE, Error(), failure, CTar::m_Bad, CTar::m_Buffer, CTar::m_BufferPos, CTar::m_BufferSize, CTar::m_Modified, CTar::m_Stream, CTar::m_StreamPos, CTar::m_ZeroBlockCount, NcbiBadbit, NcbiEofbit, pad(), s_OSReason(), s_SetStateSafe(), TAR_POST, and TAR_THROW.
Referenced by CTar::x_AppendStream(), CTar::x_Flush(), CTar::x_PackCurrentName(), CTar::x_ReadArchive(), and CTar::x_WriteEntryInfo().
◆ x_WriteEntryInfo()Definition at line 2604 of file tar.cpp.
References _ASSERT, _TROUBLE, BLOCK_SIZE, TTarBlock::buffer, CTar::Checkpoint(), STarHeader::devmajor, STarHeader::devminor, CTarEntryInfo::eBlockDev, CTarEntryInfo::eCharDev, CTarEntryInfo::eDir, CTarEntryInfo::eFile, CTarEntryInfo::ePipe, CTarEntryInfo::eSymLink, eTar_OldGNU, eTar_Ustar, CTar::fStandardHeaderOnly, CTarEntryInfo::GetGroupId(), CTarEntryInfo::GetGroupName(), CTarEntryInfo::GetLinkName(), CTarEntryInfo::GetMajor(), CTarEntryInfo::GetMinor(), CTarEntryInfo::GetMode(), CTarEntryInfo::GetModificationTime(), CTarEntryInfo::GetName(), CTarEntryInfo::GetSize(), CTarEntryInfo::GetType(), CTarEntryInfo::GetUserId(), CTarEntryInfo::GetUserName(), STarHeader::gid, STarHeader::gname, TTarBlock::header, NStr::IntToString(), len, CTar::m_Current, CTar::m_Flags, CTarEntryInfo::m_HeaderSize, CTarEntryInfo::m_Pos, CTar::m_StreamPos, STarHeader::magic, STarHeader::mode, STarHeader::mtime, ok, STarHeader::prefix, s_EncodeUint8(), s_NumToOctal(), s_TarChecksum(), STarHeader::size, sx_Signature(), TAR_THROW, STarHeader::typeflag, STarHeader::uid, STarHeader::uname, STarHeader::version, CTar::x_PackCurrentName(), and CTar::x_WriteArchive().
Referenced by CTar::x_Append(), and CTar::x_AppendStream().
◆ ~CArchive() CArchive::~CArchive ( void ) virtual ◆ ~CArchiveCompressionFileStream() CArchiveCompressionFileStream::~CArchiveCompressionFileStream ( void ) virtual ◆ ~CArchiveZip() CArchiveZip::~CArchiveZip ( void ) virtual ◆ ~CBZip2Compression() virtual CBZip2Compression::~CBZip2Compression ( void ) virtualDestructor.
◆ ~CBZip2CompressionFile() CBZip2CompressionFile::~CBZip2CompressionFile ( void )Destructor.
◆ ~CBZip2Compressor() virtual CBZip2Compressor::~CBZip2Compressor ( void ) virtualDestructor.
◆ ~CBZip2Decompressor() virtual CBZip2Decompressor::~CBZip2Decompressor ( void ) virtualDestructor.
◆ ~CCompression() CCompression::~CCompression ( void ) virtual ◆ ~CCompressionDictionary() CCompressionDictionary::~CCompressionDictionary ( void ) virtual ◆ ~CCompressionFile() CCompressionFile::~CCompressionFile ( void ) virtualDefinition at line 210 of file compress.cpp.
◆ ~CCompressionProcessor() CCompressionProcessor::~CCompressionProcessor ( void ) virtualDefinition at line 192 of file compress.cpp.
◆ ~CDynamicCharArray() CDynamicCharArray::~CDynamicCharArray ( void ) ◆ ~CLZOCompression() CLZOCompression::~CLZOCompression ( void ) virtualDestructor.
Definition at line 148 of file lzo.cpp.
◆ ~CLZOCompressionFile() CLZOCompressionFile::~CLZOCompressionFile ( void ) ◆ ~CLZOCompressor() CLZOCompressor::~CLZOCompressor ( void ) virtual ◆ ~CLZODecompressor() CLZODecompressor::~CLZODecompressor ( void ) virtual ◆ ~CNlmZipBtRdr() ◆ ~CNlmZipReader() CNlmZipReader::~CNlmZipReader ( void ) ◆ ~CTar() ◆ ~CZipCloudflareCompression() virtual CZipCloudflareCompression::~CZipCloudflareCompression ( void ) virtualDestructor.
◆ ~CZipCloudflareCompressionFile() CZipCloudflareCompressionFile::~CZipCloudflareCompressionFile ( void )Destructor.
◆ ~CZipCloudflareCompressor() virtual CZipCloudflareCompressor::~CZipCloudflareCompressor ( void ) virtualDestructor.
◆ ~CZipCloudflareDecompressor() virtual CZipCloudflareDecompressor::~CZipCloudflareDecompressor ( void ) virtualDestructor.
◆ ~CZipCompression() virtual CZipCompression::~CZipCompression ( void ) virtualDestructor.
◆ ~CZipCompressionFile() CZipCompressionFile::~CZipCompressionFile ( void )Destructor.
◆ ~CZipCompressor() virtual CZipCompressor::~CZipCompressor ( void ) virtualDestructor.
◆ ~CZipDecompressor() virtual CZipDecompressor::~CZipDecompressor ( void ) virtualDestructor.
◆ ~IArchive() virtual IArchive::~IArchive ( void ) inlinevirtualDefinition at line 220 of file archive_.hpp.
◆ ~IChunkHandler() virtual IChunkHandler::~IChunkHandler ( void ) inlinevirtual ◆ ~ICompression() virtual ICompression::~ICompression ( void ) inlinevirtual ◆ acase [1/2] ◆ acase [2/2] ◆ comment [1/3] string CLZOCompression::SFileInfo::commentDefinition at line 361 of file lzo.hpp.
◆ comment [2/3] ◆ comment [3/3] ◆ compression_in size_t CCompression::SRecommendedBufferSizes::compression_in ◆ compression_out size_t CCompression::SRecommendedBufferSizes::compression_out ◆ decompression_in size_t CCompression::SRecommendedBufferSizes::decompression_in ◆ decompression_out size_t CCompression::SRecommendedBufferSizes::decompression_out ◆ kCompressionDefaultBufSize const streamsize kCompressionDefaultBufSize = 16*1024 ◆ kLZODefaultBlockSize const size_t kLZODefaultBlockSize = 24*1024 ◆ kZlibDefaultCompression ◆ kZlibDefaultMemLevel ◆ kZlibDefaultStrategy ◆ kZlibDefaultWbits ◆ m_Archive unique_ptr<IArchive> CArchive::m_Archive protected ◆ m_Array char* CDynamicCharArray::m_Array private ◆ m_Bad ◆ m_BaseDir [1/2] ◆ m_BaseDir [2/2] ◆ m_BlockLen size_t CLZODecompressor::m_BlockLen private ◆ m_BlockSize size_t CLZOCompression::m_BlockSize protected ◆ m_Buf [1/2] const void* CArchiveMemory::m_Buf protected ◆ m_Buf [2/2] ◆ m_Buffer [1/2] ◆ m_Buffer [2/2] ◆ m_BufferEnd size_t CNlmZipReader::m_BufferEnd private ◆ m_BufferPos [1/2] size_t CNlmZipReader::m_BufferPos private ◆ m_BufferPos [2/2]Position within the record.
Definition at line 781 of file tar.hpp.
Referenced by CTarReader::PendingCount(), CTarReader::Read(), CTar::x_AppendStream(), CTar::x_Backspace(), CTar::x_Close(), CTar::x_Flush(), CTar::x_Open(), CTar::x_PackCurrentName(), CTar::x_ReadArchive(), CTar::x_Skip(), and CTar::x_WriteArchive().
◆ m_BufferSize const size_t CTar::m_BufferSize privateBuffer(record) size for I/O operations.
Definition at line 780 of file tar.hpp.
Referenced by CTarReader::PendingCount(), CTarReader::Read(), CTar::x_AppendStream(), CTar::x_Backspace(), CTar::x_ExtractPlainFile(), CTar::x_ExtractSparseFile(), CTar::x_Flush(), CTar::x_Init(), CTar::x_PackCurrentName(), CTar::x_ReadAndProcess(), CTar::x_ReadArchive(), CTar::x_ReadEntryInfo(), CTar::x_Skip(), and CTar::x_WriteArchive().
◆ m_BufPtr ◆ m_BufSize size_t CArchiveMemory::m_BufSize protected ◆ m_Busy ◆ m_c_MemLevel [1/2] int CZipCompression::m_c_MemLevel protected ◆ m_c_MemLevel [2/2] int CZipCloudflareCompression::m_c_MemLevel protected ◆ m_c_Strategy [1/2] int CZipCompression::m_c_Strategy protected ◆ m_c_Strategy [2/2] int CZipCloudflareCompression::m_c_Strategy protected ◆ m_c_WorkFactor int CBZip2Compression::m_c_WorkFactor protected ◆ m_Cache [1/5] string CLZODecompressor::m_Cache private ◆ m_Cache [2/5] string CZipCompressor::m_Cache privateBuffer to cache small pieces of data.
Definition at line 695 of file zlib.hpp.
◆ m_Cache [3/5] string CZipDecompressor::m_Cache privateBuffer to cache small pieces of data.
Definition at line 744 of file zlib.hpp.
◆ m_Cache [4/5] string CZipCloudflareCompressor::m_Cache private ◆ m_Cache [5/5] string CZipCloudflareDecompressor::m_Cache private ◆ m_cd_WindowBits [1/2] int CZipCompression::m_cd_WindowBits protected ◆ m_cd_WindowBits [2/2] int CZipCloudflareCompression::m_cd_WindowBits protected ◆ m_Comment string CArchiveEntryInfo::m_Comment protected ◆ m_Compressed ◆ m_CompressedSize Uint8 CArchiveEntryInfo::m_CompressedSize protected ◆ m_CRC32 [1/2] unsigned long CZipCompressor::m_CRC32 privateCRC32 for compressed data.
Definition at line 694 of file zlib.hpp.
◆ m_CRC32 [2/2] unsigned long CZipCloudflareCompressor::m_CRC32 private ◆ m_Current [1/2] ◆ m_Current [2/2]Current entry being processed.
Definition at line 791 of file tar.hpp.
Referenced by CTar::GetNextEntryData(), CTar::GetNextEntryInfo(), CTarReader::PendingCount(), CTarReader::Read(), CTar::x_Append(), CTar::x_AppendFile(), CTar::x_AppendStream(), CTar::x_Backspace(), CTar::x_ExtractEntry(), CTar::x_ExtractPlainFile(), CTar::x_ExtractSparseFile(), CTar::x_Flush(), CTar::x_Open(), CTar::x_PackCurrentName(), CTar::x_ParsePAXData(), CTar::x_ProcessEntry(), CTar::x_ReadAndProcess(), CTar::x_ReadEntryInfo(), and CTar::x_WriteEntryInfo().
◆ m_d_SmallDecompress int CBZip2Compression::m_d_SmallDecompress protected ◆ m_Data const void* CCompressionDictionary::m_Data private ◆ m_DecompressMode ◆ m_Decompressor [1/2] ◆ m_Decompressor [2/2] ◆ m_Dict ◆ m_DictOwn ◆ m_EOF bool CBZip2CompressionFile::m_EOF protectedEOF flag for read mode.
Definition at line 415 of file bzip2.hpp.
◆ m_ErrorCode int CCompression::m_ErrorCode private ◆ m_ErrorMsg string CCompression::m_ErrorMsg private ◆ m_fd int CArchiveCompressionFileStream::m_fd protected ◆ m_File [1/4] TFile CCompressionFile::m_File protected ◆ m_File [2/4] ◆ m_File [3/4] ◆ m_File [4/4] ◆ m_FileInfo [1/3] ◆ m_FileInfo [2/3]Compressed file info.
Definition at line 698 of file zlib.hpp.
◆ m_FileInfo [3/3] SFileInfo CZipCloudflareCompressor::m_FileInfo private ◆ m_FileName [1/2] string CArchiveFile::m_FileName protected ◆ m_FileName [2/2] ◆ m_FileStream [1/3] FILE* CArchiveCompressionFileStream::m_FileStream protected ◆ m_FileStream [2/3] FILE* CBZip2CompressionFile::m_FileStream protectedUnderlying file stream.
Definition at line 414 of file bzip2.hpp.
◆ m_FileStream [3/3] ◆ m_Flags [1/3] ◆ m_Flags [2/3] ◆ m_Flags [3/3]Bitwise OR of flags.
Definition at line 789 of file tar.hpp.
Referenced by CTar::Extract(), CTar::GetFlags(), CTar::GetNextEntryData(), CTar::SetFlags(), CTar::x_Append(), CTar::x_AppendFile(), CTar::x_Close(), CTar::x_ExtractEntry(), CTar::x_ExtractPlainFile(), CTar::x_ExtractSparseFile(), CTar::x_Flush(), CTar::x_Open(), CTar::x_PackCurrentName(), CTar::x_ParsePAXData(), CTar::x_ProcessEntry(), CTar::x_ReadAndProcess(), CTar::x_ReadArchive(), CTar::x_ReadEntryInfo(), CTar::x_Skip(), and CTar::x_WriteEntryInfo().
◆ m_Format ◆ m_GroupName [1/2] string CArchiveEntryInfo::m_GroupName protected ◆ m_GroupName [2/2] string CTarEntryInfo::m_GroupName protected ◆ m_Handle ◆ m_HaveData bool CBZip2CompressionFile::m_HaveData protectedFlag that we read/write some data.
Definition at line 416 of file bzip2.hpp.
◆ m_Header ◆ m_HeaderFlags ◆ m_HeaderLen size_t CLZODecompressor::m_HeaderLen private ◆ m_HeaderSize streamsize CTarEntryInfo::m_HeaderSize protected ◆ m_InBuf char* CLZOBuffer::m_InBuf private ◆ m_Index size_t CArchiveEntryInfo::m_Index protected ◆ m_InitialAllocationSize size_t CArchiveMemory::m_InitialAllocationSize protected ◆ m_InLen size_t CLZOBuffer::m_InLen private ◆ m_InSize size_t CLZOBuffer::m_InSize private ◆ m_IsGZ [1/2] bool CZipDecompressor::m_IsGZ privateTRUE if data have gzip format.
Definition at line 741 of file zlib.hpp.
◆ m_IsGZ [2/2] bool CZipCloudflareDecompressor::m_IsGZ private ◆ m_Level ◆ m_LinkName [1/2] string CArchiveEntryInfo::m_LinkName protected ◆ m_LinkName [2/2] string CTarEntryInfo::m_LinkName protected ◆ m_Location [1/2] ◆ m_Location [2/2] ◆ m_Mask ◆ m_MaskFullPath SMask CArchive::m_MaskFullPath protected ◆ m_MaskPattern SMask CArchive::m_MaskPattern protected ◆ m_Mode [1/5]Processing direction (read/write)
Definition at line 419 of file archive_.hpp.
Referenced by CArchiveZip::Close(), CArchiveZip::CreateFile(), CArchiveZip::CreateFileStream(), CArchiveZip::CreateMemory(), CArchiveZip::ExtractEntryToCallback(), CArchiveZip::ExtractEntryToFileSystem(), CArchiveZip::ExtractEntryToMemory(), CArchiveZip::FinalizeMemory(), CArchiveZip::GetEntryInfo(), CArchiveZip::GetNumEntries(), CArchiveZip::OpenFile(), CArchiveZip::OpenFileStream(), CArchiveZip::OpenMemory(), and CArchiveZip::TestEntry().
◆ m_Mode [2/5] EMode CCompressionFile::m_Mode protected ◆ m_Mode [3/5] EMode CLZOCompressionFile::m_Mode protected ◆ m_Mode [4/5] EMode CZipCompressionFile::m_Mode protectedI/O mode (read/write).
Definition at line 637 of file zlib.hpp.
◆ m_Mode [5/5] EMode CZipCloudflareCompressionFile::m_Mode protected ◆ m_Modified [1/2] bool CArchive::m_Modified protected ◆ m_Modified [2/2] ◆ m_Name [1/2] string CArchiveEntryInfo::m_Name protected ◆ m_Name [2/2] ◆ m_NeedCheckHeader [1/2] bool CZipDecompressor::m_NeedCheckHeader privateTRUE if needed to check to file header.
Definition at line 740 of file zlib.hpp.
◆ m_NeedCheckHeader [2/2] bool CZipCloudflareDecompressor::m_NeedCheckHeader private ◆ m_NeedWriteHeader [1/3] bool CLZOCompressor::m_NeedWriteHeader private ◆ m_NeedWriteHeader [2/3] bool CZipCompressor::m_NeedWriteHeader privateIs true if needed to write a file header.
Definition at line 696 of file zlib.hpp.
◆ m_NeedWriteHeader [3/3] bool CZipCloudflareCompressor::m_NeedWriteHeader private ◆ m_OpenMode [1/2] ◆ m_OpenMode [2/2] ◆ m_OutBegPtr char* CLZOBuffer::m_OutBegPtr private ◆ m_OutBuf char* CLZOBuffer::m_OutBuf private ◆ m_OutEndPtr char* CLZOBuffer::m_OutEndPtr private ◆ m_OutputSize size_t CCompressionProcessor::m_OutputSize privateDefinition at line 564 of file compress.hpp.
◆ m_OutSize size_t CLZOBuffer::m_OutSize private ◆ m_Own [1/2] ◆ m_Own [2/2] ◆ m_OwnBuf ◆ m_Param ◆ m_Path ◆ m_Pos Uint8 CTarEntryInfo::m_Pos protected ◆ m_ProcessedSize size_t CCompressionProcessor::m_ProcessedSize privateDefinition at line 563 of file compress.hpp.
◆ m_Reader ◆ m_Size [1/3] size_t CCompressionDictionary::m_Size private ◆ m_Size [2/3] size_t CLZOBuffer::m_Size privateSize of in/out buffers.
Definition at line 632 of file lzo.hpp.
◆ m_Size [3/3] size_t CDynamicCharArray::m_Size private ◆ m_SkipInput [1/2] size_t CZipDecompressor::m_SkipInput privateNumber of bytes to skip from input stream.
Used to process concatenated .gz files.
Definition at line 742 of file zlib.hpp.
◆ m_SkipInput [2/2] size_t CZipCloudflareDecompressor::m_SkipInput privateNumber of bytes to skip from input stream.
Used to process concatenated .gz files.
Definition at line 736 of file zlib_cloudflare.hpp.
◆ m_Src ◆ m_Stat [1/2]Direntry-compatible info (as applicable)
Definition at line 161 of file archive_.hpp.
Referenced by CArchiveEntryInfo::GetCreationTime(), CArchiveEntryInfo::GetGroupId(), CArchiveEntryInfo::GetLastAccessTime(), CArchiveEntryInfo::GetMajor(), CArchiveEntryInfo::GetMinor(), CArchiveEntryInfo::GetMode(), CArchiveEntryInfo::GetModificationTime(), CArchiveEntryInfo::GetSize(), CArchiveEntryInfo::GetUserId(), CArchiveEntryInfo::operator==(), CArchiveEntryInfo::Reset(), and CArchive::x_Append().
◆ m_Stat [2/2]Direntry-compatible info.
Definition at line 253 of file tar.hpp.
Referenced by CTarEntryInfo::CTarEntryInfo(), CTarUserEntryInfo::CTarUserEntryInfo(), CTarEntryInfo::GetCreationCTime(), CTarEntryInfo::GetCreationTime(), CTarEntryInfo::GetGroupId(), CTarEntryInfo::GetLastAccessCTime(), CTarEntryInfo::GetLastAccessTime(), CTarEntryInfo::GetMajor(), CTarEntryInfo::GetMinor(), CTarEntryInfo::GetMode(), CTarEntryInfo::GetModificationCTime(), CTarEntryInfo::GetModificationTime(), CTarEntryInfo::GetSize(), CTarEntryInfo::GetUserId(), CTarEntryInfo::operator==(), CTar::x_Append(), CTar::x_ExtractEntry(), CTar::x_ParsePAXData(), CTar::x_ReadAndProcess(), and CTar::x_ReadEntryInfo().
◆ m_Stream [1/7] void* CBZip2Compression::m_Stream protectedCompressor stream.
Definition at line 298 of file bzip2.hpp.
◆ m_Stream [2/7] ◆ m_Stream [3/7] ◆ m_Stream [4/7] void* CZipCompression::m_Stream protectedCompressor stream.
Definition at line 489 of file zlib.hpp.
◆ m_Stream [5/7][De]comression stream.
Definition at line 639 of file zlib.hpp.
◆ m_Stream [6/7] void* CZipCloudflareCompression::m_Stream protected ◆ m_Stream [7/7] ◆ m_StreamPosPosition in stream (0-based)
Definition at line 782 of file tar.hpp.
Referenced by CTar::GetCurrentPosition(), CTar::GetNextEntryInfo(), CTarReader::Read(), CTar::x_Append(), CTar::x_AppendStream(), CTar::x_Backspace(), CTar::x_Close(), CTar::x_ExtractPlainFile(), CTar::x_ExtractSparseFile(), CTar::x_Flush(), CTar::x_Open(), CTar::x_ReadAndProcess(), CTar::x_ReadArchive(), CTar::x_ReadEntryInfo(), CTar::x_ReadLine(), CTar::x_Skip(), CTar::x_WriteArchive(), and CTar::x_WriteEntryInfo().
◆ m_Type [1/3] ◆ m_Type [2/3] EType CNlmZipBtRdr::m_Type private ◆ m_Type [3/3] EType CTarEntryInfo::m_Type protected ◆ m_UserName [1/2] string CArchiveEntryInfo::m_UserName protected ◆ m_UserName [2/2] string CTarEntryInfo::m_UserName protected ◆ m_WorkMem ◆ m_ZeroBlockCount size_t CTar::m_ZeroBlockCount private ◆ mask [1/2] CMask* CArchive::SMask::mask ◆ mask [2/2] ◆ mtime [1/3] time_t CLZOCompression::SFileInfo::mtimeDefinition at line 362 of file lzo.hpp.
◆ mtime [2/3] time_t CZipCompression::SFileInfo::mtimeDefinition at line 358 of file zlib.hpp.
◆ mtime [3/3] ◆ name [1/3] ◆ name [2/3] ◆ name [3/3] ◆ owned [1/2] ◆ owned [2/2] ◆ CArchive ◆ CArchiveZip ◆ CCompressionStream ◆ CCompressionStreambuf [1/2] ◆ CCompressionStreambuf [2/2] ◆ CCompressionStreamProcessor ◆ CLZOCompressor ◆ CLZODecompressor ◆ CTar [1/2] ◆ CTar [2/2] ◆ CTarReaderRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4