A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/group__Compression.html below:

NCBI C++ ToolKit: Compression

enum   CArchive::EFormat { CArchive::eZip }   Archive formats. More...
  enum   CArchive::EFlags {
  CArchive::fOverwrite = (1<<3) , CArchive::fUpdate = (1<<4) | fOverwrite , CArchive::fBackup = (1<<5) | fOverwrite , CArchive::fEqualTypes = (1<<6) ,
  CArchive::fPreserveOwner = (1<<7) , CArchive::fPreserveMode = (1<<8) , CArchive::fPreserveTime = (1<<9) , CArchive::fPreserveAll = fPreserveOwner | fPreserveMode | fPreserveTime ,
  CArchive::fFollowLinks = (1<<2) , CArchive::fSkipUnsupported = (1<<15) , CArchive::fDefault = fOverwrite | fPreserveAll
}   General flags. More...
  enum   CArchive::EMaskType { CArchive::eFullPathMask , CArchive::ePatternMask }   enum   CArchive::ESupportFeature { CArchive::eFeature_Type , CArchive::eFeature_AbsolutePath , CArchive::eFeature_FileStream }   enum   CArchive::EOpenMode { CArchive::eNone = 0 , CArchive::eRO = 1 , CArchive::eWO = 2 , CArchive::eRW = eRO | eWO }   Archive open mode. More...
  enum   CArchive::EAction {
  CArchive::eUndefined = eNone , CArchive::eCreate = (1 << 8) | eWO , CArchive::eAppend = (1 << 9) | eWO , CArchive::eList = (1 << 10) | eRO ,
  CArchive::eUpdate = eList | eAppend , CArchive::eExtract = (1 << 11) | eRO , CArchive::eTest = eList | eExtract
}   Action, performed on the archive. More...
  enum   CArchiveException::EErrCode {
  CArchiveException::eUnsupported , CArchiveException::eMemory , CArchiveException::eUnsupportedEntryType , CArchiveException::eBadName ,
  CArchiveException::eCreate , CArchiveException::eOpen , CArchiveException::eClose , CArchiveException::eList ,
  CArchiveException::eExtract , CArchiveException::eAppend , CArchiveException::eWrite , CArchiveException::eBackup ,
  CArchiveException::eRestoreAttrs
}   Error types that CArchive API can generate. More...
  enum   IArchive::EDirection { IArchive::eRead , IArchive::eWrite }   Processing direction. More...
  enum   IArchive::ELocation { IArchive::eFile , IArchive::eFileStream , IArchive::eMemory }   Archive location. More...
  enum   CBZip2Compression::EFlags { CBZip2Compression::fAllowTransparentRead = (1<<0) , CBZip2Compression::fAllowEmptyData = (1<<1) }   Compression/decompression flags. More...
  enum   ICompression::ELevel {
  ICompression::eLevel_Default = -1 , ICompression::eLevel_NoCompression = 0 , ICompression::eLevel_Lowest = 1 , ICompression::eLevel_VeryLow = 2 ,
  ICompression::eLevel_Low = 3 , ICompression::eLevel_MediumLow = 4 , ICompression::eLevel_Medium = 5 , ICompression::eLevel_MediumHigh = 6 ,
  ICompression::eLevel_High = 7 , ICompression::eLevel_VeryHigh = 8 , ICompression::eLevel_Best = 9
}   Compression level. More...
  enum   ICompression::ESupportFeature { ICompression::eFeature_NoCompression , ICompression::eFeature_Dictionary , ICompression::eFeature_EstimateCompressionBufferSize }   Supported features. More...
  enum   CCompression::EDecompressMode { CCompression::eMode_Unknown , CCompression::eMode_Decompress , CCompression::eMode_TransparentRead }   Decompression mode (see fAllowTransparentRead flag). More...
  enum   CCompressionFile::EMode { CCompressionFile::eMode_Read , CCompressionFile::eMode_Write }   File open mode. More...
  enum   CCompressionProcessor::EStatus {
  CCompressionProcessor::eStatus_Success , CCompressionProcessor::eStatus_EndOfData , CCompressionProcessor::eStatus_Error , CCompressionProcessor::eStatus_Overflow ,
  CCompressionProcessor::eStatus_Repeat , CCompressionProcessor::eStatus_Unknown
}   Type of the result of all basic functions. More...
  enum   CCompressionException::EErrCode { CCompressionException::eCompression , CCompressionException::eCompressionFile }   enum   IChunkHandler::EAction { IChunkHandler::eAction_Continue , IChunkHandler::eAction_Stop }   Action types. More...
  enum   CLZOCompression::EFlags {
  CLZOCompression::fAllowTransparentRead = (1<<0) , CLZOCompression::fAllowEmptyData = (1<<1) , CLZOCompression::fChecksum = (1<<2) , CLZOCompression::fStreamFormat = (1<<3) ,
  CLZOCompression::fStoreFileInfo = (1<<4) | fStreamFormat
}   Compression/decompression flags. More...
  enum   CNlmZipBtRdr::EType { CNlmZipBtRdr::eType_unknown , CNlmZipBtRdr::eType_plain , CNlmZipBtRdr::eType_zlib }   enum   { CDynamicCharArray::kInititialSize = 8192 }   enum   CNlmZipReader::EOwnership { CNlmZipReader::fOwnNone = 0 , CNlmZipReader::fOwnReader = 1 << 1 , CNlmZipReader::fOwnAll = fOwnReader }   Which of the objects (passed in the constructor) should be deleted on this object's destruction. More...
  enum   { CNlmZipReader::kHeaderSize = 4 }   enum   CNlmZipReader::EHeader { CNlmZipReader::eHeaderNone , CNlmZipReader::eHeaderAlways , CNlmZipReader::eHeaderCheck }   enum   ETarModeBits {
  fTarSetUID = 04000 , fTarSetGID = 02000 , fTarSticky = 01000 , fTarURead = 00400 ,
  fTarUWrite = 00200 , fTarUExecute = 00100 , fTarGRead = 00040 , fTarGWrite = 00020 ,
  fTarGExecute = 00010 , fTarORead = 00004 , fTarOWrite = 00002 , fTarOExecute = 00001
}   TTarMode –. More...
  enum   CTarException::EErrCode {
  CTarException::eUnsupportedTarFormat , CTarException::eUnsupportedEntryType , CTarException::eUnsupportedSource , CTarException::eNameTooLong ,
  CTarException::eChecksum , CTarException::eBadName , CTarException::eCreate , CTarException::eOpen ,
  CTarException::eRead , CTarException::eWrite , CTarException::eBackup , CTarException::eMemory ,
  CTarException::eRestoreAttrs
}   Error types that file operations can generate. More...
  enum   CTarEntryInfo::EType {
  CTarEntryInfo::eFile = CDirEntry::eFile , CTarEntryInfo::eDir = CDirEntry::eDir , CTarEntryInfo::eSymLink = CDirEntry::eSymLink , CTarEntryInfo::ePipe = CDirEntry::ePipe ,
  CTarEntryInfo::eCharDev = CDirEntry::eCharSpecial , CTarEntryInfo::eBlockDev = CDirEntry::eBlockSpecial , CTarEntryInfo::eUnknown = CDirEntry::eUnknown , CTarEntryInfo::eHardLink ,
  CTarEntryInfo::eVolHeader , CTarEntryInfo::ePAXHeader , CTarEntryInfo::eSparseFile , CTarEntryInfo::eGNULongName ,
  CTarEntryInfo::eGNULongLink
}   Archive entry type. More...
  enum   CTarEntryInfo::EPos { CTarEntryInfo::ePos_Header , CTarEntryInfo::ePos_Data }   Position type. More...
  enum   CTar::EFlags {
  CTar::fIgnoreZeroBlocks = (1<<1) , CTar::fFollowLinks = (1<<2) , CTar::fOverwrite = (1<<3) , CTar::fUpdate = (1<<4) | fOverwrite ,
  CTar::fBackup = (1<<5) | fOverwrite , CTar::fEqualTypes = (1<<6) , CTar::fPreserveOwner = (1<<7) , CTar::fPreserveMode = (1<<8) ,
  CTar::fPreserveTime = (1<<9) , CTar::fPreserveAll = fPreserveOwner | fPreserveMode | fPreserveTime , CTar::fKeepAbsolutePath = (1<<12) , CTar::fSparseUnsupported = (1<<13) ,
  CTar::fSkipUnsupported = (1<<15) , CTar::fIgnoreUnreadable = (1<<17) , CTar::fLongNameSupplement = (1<<18) , CTar::fDumpEntryHeaders = (1<<20) ,
  CTar::fSlowSkipWithRead = (1<<21) , CTar::fIgnoreNameCase = (1<<24) , CTar::fConflictOverwrite = (1<<25) , CTar::fStreamPipeThrough = (1<<28) ,
  CTar::fTarfileNoTruncate = (1<<29) , CTar::fStandardHeaderOnly = (1<<30) , CTar::fDefault = fOverwrite | fPreserveAll
}   General flags. More...
  enum   CTar::EMaskType { CTar::eExtractMask = 0 , CTar::eExcludeMask }   enum   CTar::EOpenMode { CTar::eNone = 0 , CTar::eWO = 1 , CTar::eRO = 2 , CTar::eRW = eRO | eWO }   Archive open mode and action. More...
  enum   CTar::EAction {
  CTar::eUndefined = eNone , CTar::eList = (1 << 2) | eRO , CTar::eAppend = (1 << 3) | eRW , CTar::eUpdate = eList | eAppend ,
  CTar::eExtract = (1 << 4) | eRO , CTar::eTest = eList | eExtract , CTar::eCreate = (1 << 5) | eWO , CTar::eInternal = (1 << 6) | eRO
}   enum   CTar::EStatus {
  CTar::eFailure = -1 , CTar::eSuccess = 0 , CTar::eContinue , CTar::eZeroBlock ,
  CTar::eEOF
}   I/O completion code. More...
  enum   CZipCompression::EFlags {
  CZipCompression::fAllowTransparentRead = (1<<0) , CZipCompression::fAllowEmptyData = (1<<1) , CZipCompression::fCheckFileHeader = (1<<2) , CZipCompression::fWriteGZipFormat = (1<<3) ,
  CZipCompression::fAllowConcatenatedGZip = (1<<4) , CZipCompression::fGZip = fCheckFileHeader | fWriteGZipFormat | fAllowConcatenatedGZip , CZipCompression::fRestoreFileAttr = (1<<5)
}   Compression/decompression flags. More...
  enum   CZipCloudflareCompression::EFlags {
  CZipCloudflareCompression::fAllowTransparentRead = (1<<0) , CZipCloudflareCompression::fAllowEmptyData = (1<<1) , CZipCloudflareCompression::fCheckFileHeader = (1<<2) , CZipCloudflareCompression::fWriteGZipFormat = (1<<3) ,
  CZipCloudflareCompression::fAllowConcatenatedGZip = (1<<4) , CZipCloudflareCompression::fGZip = fCheckFileHeader | fWriteGZipFormat | fAllowConcatenatedGZip , CZipCloudflareCompression::fRestoreFileAttr = (1<<5)
}   Compression/decompression flags. More...
    CArchive::CArchive (EFormat format)   Construct an archive object of specified format. More...
  virtual  CArchive::~CArchive (void)   Destructor. More...
  virtual void  CArchive::Create (void)   Create a new empty archive. More...
  virtual void  CArchive::Close (void)   Close the archive making sure all pending output is flushed. More...
  virtual unique_ptr< TEntriesCArchive::List (void)   Get information about archive entries. More...
  virtual unique_ptr< TEntriesCArchive::Test (void)   Verify archive integrity. More...
  virtual unique_ptr< TEntriesCArchive::Extract (void)   Extract the entire archive. More...
  virtual void  CArchive::ExtractFileToMemory (const CArchiveEntryInfo &info, void *buf, size_t buf_size, size_t *out_size)   Extract single file entry to a memory buffer. More...
  virtual void  CArchive::ExtractFileToHeap (const CArchiveEntryInfo &info, void **buf_ptr, size_t *buf_size_ptr)   Extract single file entry to a dynamically allocated memory buffer. More...
  virtual void  CArchive::ExtractFileToCallback (const CArchiveEntryInfo &info, IArchive::Callback_Write callback)   Extract single file entry using user-defined callback. More...
  virtual unique_ptr< TEntriesCArchive::Append (const string &path, ELevel level=CCompression::eLevel_Default, const string &comment=kEmptyStr)   Append an entry to the archive. More...
  virtual unique_ptr< CArchive::TEntriesCArchive::AppendFileFromMemory (const string &name_in_archive, void *buf, size_t buf_size, ELevel level=CCompression::eLevel_Default, const string &comment=kEmptyStr)   Append a single file entry to the created archive using data from memory buffer. More...
  virtual TFlags  CArchive::GetFlags (void) const   Get flags. More...
  virtual void  CArchive::SetFlags (TFlags flags)   Set flags. More...
  virtual const stringCArchive::GetBaseDir (void) const   Get base directory to use for files while extracting from/adding to the archive, and in the latter case used only for relative paths. More...
  virtual void  CArchive::SetBaseDir (const string &dirname)   Set base directory to use for files while extracting from/adding to the archive, and in the latter case used only for relative paths. More...
  void  CArchive::SetMask (CMask *mask, EOwnership own=eNoOwnership, EMaskType type=eFullPathMask, NStr::ECase acase=NStr::eNocase)   Set name mask for processing. More...
  void  CArchive::UnsetMask (EMaskType type)   Unset name mask for processing. More...
  void  CArchive::UnsetMask (void)   bool  CArchive::HaveSupport (ESupportFeature feature, int param=0)   Check that current archive format have support for specific features. More...
    CArchive::SMask::SMask (void)   virtual bool  CArchive::Checkpoint (const CArchiveEntryInfo &, EAction)   Return false to skip the current entry when processing. More...
  virtual void  CArchive::Open (EAction action)=0   Open archive. More...
  virtual void  CArchive::SkipEntry (void)   Process current entry (List/Test/Extract/Append) More...
  virtual void  CArchive::TestEntry (void)   virtual void  CArchive::ExtractEntry (const CDirEntry &dst)   virtual void  CArchive::AppendEntry (const string &path, ELevel level)   void  CArchive::x_Open (EAction action)   unique_ptr< TEntriesCArchive::x_ReadAndProcess (EAction action)   unique_ptr< TEntriesCArchive::x_Append (const string &path, ELevel level, const string &comment, const TEntries *toc=NULL)   bool  CArchive::x_AppendEntry (const string &path, ELevel level=CCompression::eLevel_Default)   void  CArchive::x_ExtractEntry (const TEntries *prev_entries)   void  CArchive::x_RestoreAttrs (const CArchiveEntryInfo &info, const CDirEntry *dst=NULL) const   CArchiveCArchive::operator= (const CArchive &)     CArchive::CArchive (const CArchive &)     CArchiveFile::CArchiveFile (EFormat format, const string &filename)   Constructor for file-based archive. More...
  virtual void  CArchiveFile::Open (EAction action)   Open the archive for specified action. More...
  CArchiveFileCArchiveFile::operator= (const CArchiveFile &)     CArchiveFile::CArchiveFile (const CArchiveFile &)     CArchiveMemory::CArchiveMemory (EFormat format, const void *buf=NULL, size_t buf_size=0)   Constructor for memory-based archive. More...
  virtual void  CArchiveMemory::Create (size_t initial_allocation_size)   Create a new empty archive in memory. More...
  virtual void  CArchiveMemory::Create (void)   Create a new empty archive. More...
  void  CArchiveMemory::Save (const string &filename)   Save current opened/created archive to file. More...
  void  CArchiveMemory::Load (const string &filename)   Load existing archive from file system to memory. More...
  virtual void  CArchiveMemory::Finalize (void **buf_ptr, size_t *buf_size_ptr)   Finalize the archive created in memory. More...
  virtual void  CArchiveMemory::Open (EAction action)   Open the archive for specified action. More...
  CArchiveMemoryCArchiveMemory::operator= (const CArchiveMemory &)     CArchiveMemory::CArchiveMemory (const CArchiveMemory &)     CArchiveCompressionFileStream::CArchiveCompressionFileStream (EFormat format, int fd)   Constructor for stream-based archive. More...
    CArchiveCompressionFileStream::CArchiveCompressionFileStream (EFormat format, FILE *filestream)   Create new archive on a base of already opened FILE* stream, beginning at the current FILE* position. More...
  virtual  CArchiveCompressionFileStream::~CArchiveCompressionFileStream (void)   Destructor. More...
  virtual void  CArchiveCompressionFileStream::Create (void)   Create a new empty archive. More...
  virtual void  CArchiveCompressionFileStream::Close (void)   Close archive. More...
  virtual void  CArchiveCompressionFileStream::Open (EAction action)   Open the archive for specified action. More...
  CArchiveCompressionFileStreamCArchiveCompressionFileStream::operator= (const CArchiveCompressionFileStream &)     CArchiveCompressionFileStream::CArchiveCompressionFileStream (const CArchiveCompressionFileStream &)   virtual const char *  CArchiveException::GetErrCodeString (void) const override   Translate from an error code value to its string representation. More...
    CArchiveException::NCBI_EXCEPTION_DEFAULT (CArchiveException, CCoreException)     CArchiveEntryInfo::CArchiveEntryInfo ()   void  CArchiveEntryInfo::Reset (void)   CDirEntry::EType  CArchiveEntryInfo::GetType (void) const   const stringCArchiveEntryInfo::GetName (void) const   const stringCArchiveEntryInfo::GetLinkName (void) const   const stringCArchiveEntryInfo::GetUserName (void) const   const stringCArchiveEntryInfo::GetGroupName (void) const   const stringCArchiveEntryInfo::GetComment (void) const   size_t  CArchiveEntryInfo::GetIndex (void) const   time_t  CArchiveEntryInfo::GetModificationTime (void) const   time_t  CArchiveEntryInfo::GetLastAccessTime (void) const   time_t  CArchiveEntryInfo::GetCreationTime (void) const   Uint8  CArchiveEntryInfo::GetSize (void) const   mode_t  CArchiveEntryInfo::GetMode (void) const   void  CArchiveEntryInfo::GetMode (CDirEntry::TMode *user_mode, CDirEntry::TMode *group_mode=0, CDirEntry::TMode *other_mode=0, CDirEntry::TSpecialModeBits *special_bits=0) const   unsigned int  CArchiveEntryInfo::GetMajor (void) const   unsigned int  CArchiveEntryInfo::GetMinor (void) const   unsigned int  CArchiveEntryInfo::GetUserId (void) const   unsigned int  CArchiveEntryInfo::GetGroupId (void) const   bool  CArchiveEntryInfo::operator== (const CArchiveEntryInfo &info) const   ostream &  operator<< (ostream &, const CArchiveEntryInfo &)   Nice TOC (table of contents) printout. More...
  virtual  IArchive::~IArchive (void)   virtual void  IArchive::CreateFile (const string &filename)=0   Create new archive file. More...
  virtual void  IArchive::CreateFileStream (FILE *filestream)=0   Create new archive file on top of a FILE stream. More...
  virtual void  IArchive::CreateMemory (size_t initial_allocation_size=0)=0   Create new archive located in memory. More...
  virtual void  IArchive::OpenFile (const string &filename)=0   Open archive file for reading. More...
  virtual void  IArchive::OpenFileStream (FILE *filestream, Uint8 archive_size=0)=0   Open archive from a FILE stream, beginning at the current file position. More...
  virtual void  IArchive::OpenMemory (const void *buf, size_t size)=0   Open archive located in memory for reading. More...
  virtual void  IArchive::Close (void)=0   Close the archive. More...
  virtual void  IArchive::FinalizeMemory (void **buf, size_t *size)=0   Finalize the archive created in memory. More...
  virtual size_t  IArchive::GetNumEntries (void)=0   Returns the total number of entries in the archive. More...
  virtual void  IArchive::GetEntryInfo (size_t index, CArchiveEntryInfo *info)=0   Get detailed information about an archive entry by index. More...
  virtual bool  IArchive::HaveSupport_Type (CDirEntry::EType type)=0   Check that current archive format have support for specific feature. More...
  virtual bool  IArchive::HaveSupport_AbsolutePath (void)=0   virtual bool  IArchive::HaveSupport_FileStream (void)=0   virtual void  IArchive::ExtractEntryToFileSystem (const CArchiveEntryInfo &info, const string &dst_path)=0   Extracts an archive entry to file system. More...
  virtual void  IArchive::ExtractEntryToMemory (const CArchiveEntryInfo &info, void *buf, size_t size)=0   Extracts an archive file to a memory buffer. More...
  virtual void  IArchive::ExtractEntryToCallback (const CArchiveEntryInfo &info, Callback_Write callback)=0   Extracts an archive file using user-defined callback to process extracted data. More...
  virtual void  IArchive::TestEntry (const CArchiveEntryInfo &info)=0   Verify entry integrity. More...
  virtual void  IArchive::SkipEntry (const CArchiveEntryInfo &info)=0   Don't need to be implemented for ZIP format. More...
  virtual void  IArchive::AddEntryFromFileSystem (const CArchiveEntryInfo &info, const string &src_path, ELevel level)=0   Add single entry to newly created archive from file system. More...
  virtual void  IArchive::AddEntryFromMemory (const CArchiveEntryInfo &info, void *buf, size_t size, ELevel level)=0   Add entry to newly created archive from memory buffer. More...
  static bool  CBZip2Compression::Initialize (void)   Initialize compression library (for API compatibility, bz2 don't need it). More...
    CBZip2Compression::CBZip2Compression (ELevel level=eLevel_Default)   Constructor. More...
  virtual  CBZip2Compression::~CBZip2Compression (void)   Destructor. More...
  virtual CVersionInfo  CBZip2Compression::GetVersion (void) const   Return name and version of the compression library. More...
  virtual ELevel  CBZip2Compression::GetLevel (void) const   Get compression level. More...
  virtual ELevel  CBZip2Compression::GetDefaultLevel (void) const   Return default compression level for a compression algorithm. More...
  virtual bool  CBZip2Compression::HaveSupport (ESupportFeature feature)   Check if compression have support for a specified feature. More...
  virtual bool  CBZip2Compression::CompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)   Compress data in the buffer. More...
  virtual bool  CBZip2Compression::DecompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)   Decompress data in the buffer. More...
  virtual size_t  CBZip2Compression::EstimateCompressionBufferSize (size_t)   static SRecommendedBufferSizes  CBZip2Compression::GetRecommendedBufferSizes (size_t round_up=0)   Get recommended buffer sizes for stream/file I/O. More...
  virtual bool  CBZip2Compression::CompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Compress file. More...
  virtual bool  CBZip2Compression::DecompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t decompression_in_bufsize=kCompressionDefaultBufSize, size_t decompression_out_bufsize=kCompressionDefaultBufSize)   Decompress file. More...
  virtual bool  CBZip2Compression::SetDictionary (CCompressionDictionary &dict, ENcbiOwnership own=eNoOwnership)   void  CBZip2Compression::SetWorkFactor (int work_factor)   Work factor. More...
  int  CBZip2Compression::GetWorkFactor (void) const   static int  CBZip2Compression::GetWorkFactorDefault (void)   static int  CBZip2Compression::GetWorkFactorMin (void)   static int  CBZip2Compression::GetWorkFactorMax (void)   void  CBZip2Compression::SetSmallDecompress (bool small_decompres)   Small decompress. More...
  bool  CBZip2Compression::GetSmallDecompress (void) const   static bool  CBZip2Compression::GetSmallDecompressDefault (void)   const char *  CBZip2Compression::GetBZip2ErrorDescription (int errcode)   Get error description for specified error code. More...
  string  CBZip2Compression::FormatErrorMessage (string where, bool use_stream_data=true) const   Format string with last error description. More...
    CBZip2Compression::CBZip2Compression (const CBZip2Compression &)   Private copy constructor to prohibit copy. More...
  CBZip2CompressionCBZip2Compression::operator= (const CBZip2Compression &)   Private assignment operator to prohibit assignment. More...
    CBZip2CompressionFile::CBZip2CompressionFile (const string &file_name, EMode mode, ELevel level=eLevel_Default, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Constructor. More...
    CBZip2CompressionFile::CBZip2CompressionFile (ELevel level=eLevel_Default)   Conventional constructor. More...
    CBZip2CompressionFile::~CBZip2CompressionFile (void)   Destructor. More...
  virtual bool  CBZip2CompressionFile::Open (const string &file_name, EMode mode, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Opens a compressed file for reading or writing. More...
  virtual long  CBZip2CompressionFile::Read (void *buf, size_t len)   Read data from compressed file. More...
  virtual long  CBZip2CompressionFile::Write (const void *buf, size_t len)   Write data to compressed file. More...
  virtual bool  CBZip2CompressionFile::Close (void)   Close compressed file. More...
    CBZip2CompressionFile::CBZip2CompressionFile (const CBZip2CompressionFile &)   Private copy constructor to prohibit copy. More...
  CBZip2CompressionFileCBZip2CompressionFile::operator= (const CBZip2CompressionFile &)   Private assignment operator to prohibit assignment. More...
    CBZip2Compressor::CBZip2Compressor (ELevel level=eLevel_Default, TBZip2Flags flags=0)   Constructor. More...
  virtual  CBZip2Compressor::~CBZip2Compressor (void)   Destructor. More...
  virtual bool  CBZip2Compressor::AllowEmptyData () const   Return TRUE if fAllowEmptyData flag is set. More...
  virtual EStatus  CBZip2Compressor::Init (void)   Initialize the internal stream state for compression/decompression. More...
  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)   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CBZip2Compressor::Flush (char *out_buf, size_t out_size, size_t *out_avail)   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CBZip2Compressor::Finish (char *out_buf, size_t out_size, size_t *out_avail)   Finish the compression/decompression process. More...
  virtual EStatus  CBZip2Compressor::End (int abandon=0)   Free all dynamically allocated data structures. More...
    CBZip2Decompressor::CBZip2Decompressor (TBZip2Flags flags=0)   Constructor. More...
  virtual  CBZip2Decompressor::~CBZip2Decompressor (void)   Destructor. More...
  virtual bool  CBZip2Decompressor::AllowEmptyData () const   Return TRUE if fAllowEmptyData flag is set. More...
  virtual EStatus  CBZip2Decompressor::Init (void)   Initialize the internal stream state for compression/decompression. More...
  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)   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CBZip2Decompressor::Flush (char *out_buf, size_t out_size, size_t *out_avail)   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CBZip2Decompressor::Finish (char *out_buf, size_t out_size, size_t *out_avail)   Finish the compression/decompression process. More...
  virtual EStatus  CBZip2Decompressor::End (int abandon=0)   Free all dynamically allocated data structures. More...
    CBZip2StreamCompressor::CBZip2StreamCompressor (CBZip2Compression::ELevel level, streamsize in_bufsize, streamsize out_bufsize, CBZip2Compression::TBZip2Flags flags=0)   Full constructor. More...
    CBZip2StreamCompressor::CBZip2StreamCompressor (CBZip2Compression::ELevel level, CBZip2Compression::TBZip2Flags flags=0)   Conventional constructor. More...
    CBZip2StreamCompressor::CBZip2StreamCompressor (CBZip2Compression::TBZip2Flags flags=0)   Conventional constructor. More...
  CBZip2CompressorCBZip2StreamCompressor::GetCompressor (void) const   Return a pointer to compressor. More...
    CBZip2StreamDecompressor::CBZip2StreamDecompressor (streamsize in_bufsize, streamsize out_bufsize, CBZip2Compression::TBZip2Flags flags=0)   Full constructor. More...
    CBZip2StreamDecompressor::CBZip2StreamDecompressor (CBZip2Compression::TBZip2Flags flags=0)   Conventional constructor. More...
  CBZip2DecompressorCBZip2StreamDecompressor::GetDecompressor (void) const   Return a pointer to compressor. More...
  virtual  ICompression::~ICompression (void)   Destructor. More...
  virtual CVersionInfo  ICompression::GetVersion (void) const =0   Return name and version of the compression library. More...
  virtual void  ICompression::SetLevel (ELevel level)=0   virtual ELevel  ICompression::GetLevel (void) const =0   virtual ELevel  ICompression::GetDefaultLevel (void) const =0   Return the default compression level for current compression algorithm. More...
  virtual int  ICompression::GetErrorCode (void) const =0   virtual string  ICompression::GetErrorDescription (void) const =0   virtual TFlags  ICompression::GetFlags (void) const =0   virtual void  ICompression::SetFlags (TFlags flags)=0   virtual bool  ICompression::HaveSupport (ESupportFeature feature)=0   Check if compression have support for a specified feature. More...
  virtual bool  ICompression::CompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)=0   (De)compress the source buffer into the destination buffer. More...
  virtual bool  ICompression::DecompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)=0   virtual size_t  ICompression::EstimateCompressionBufferSize (size_t src_len)=0   Estimate buffer size for data compression (if supported). More...
  virtual bool  ICompression::CompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)=0   (De)compress file "src_file" and put result to file "dst_file". More...
  virtual bool  ICompression::DecompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)=0   virtual bool  ICompression::SetDictionary (CCompressionDictionary &dict, ENcbiOwnership own=eNoOwnership)=0   Set a dictionary for all compression/decompression operations (if supported). More...
    CCompression::CCompression (ELevel level=eLevel_Default)   virtual  CCompression::~CCompression (void)   virtual CVersionInfo  CCompression::GetVersion (void) const =0   Return name and version of the compression library. More...
  virtual void  CCompression::SetLevel (ELevel level)   Get/set compression level. More...
  virtual ELevel  CCompression::GetLevel (void) const   virtual int  CCompression::GetErrorCode (void) const   Get compressor's internal status/error code and description for the last operation. More...
  virtual string  CCompression::GetErrorDescription (void) const   virtual TFlags  CCompression::GetFlags (void) const   Get/set flags. More...
  virtual void  CCompression::SetFlags (TFlags flags)   size_t  CCompression::SRecommendedBufferSizes::RoundUp (size_t value, size_t precision)   void  CCompression::SetError (int status, const char *description=0)   Set last action error/status code and description. More...
  void  CCompression::SetError (int status, const string &description)   virtual bool  CCompression::x_CompressFile (const string &src_file, CCompressionFile &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize)   Universal file compression function. More...
  virtual bool  CCompression::x_DecompressFile (CCompressionFile &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize)   Universal file decompression function. More...
    CCompressionFile::CCompressionFile (void)     CCompressionFile::CCompressionFile (const string &path, EMode mode, size_t compression_in_bufsize=0, size_t compression_out_bufsize=0)   virtual  CCompressionFile::~CCompressionFile (void)   virtual bool  CCompressionFile::Open (const string &path, EMode mode, size_t compression_in_bufsize=0, size_t compression_out_bufsize=0)=0   Opens a compressed file for reading or writing. More...
  virtual long  CCompressionFile::Read (void *buf, size_t len)=0   Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf". More...
  virtual long  CCompressionFile::Write (const void *buf, size_t len)=0   Writes the given number of uncompressed bytes into the compressed file. More...
  virtual bool  CCompressionFile::Close (void)=0   Flushes all pending output if necessary, closes the compressed file. More...
    CCompressionDictionary::CCompressionDictionary (const void *buf, size_t size, ENcbiOwnership own=eNoOwnership)   Use dictionary data from a memory buffer. More...
    CCompressionDictionary::CCompressionDictionary (const string &filename)   Load a dictionary from file. More...
    CCompressionDictionary::CCompressionDictionary (istream &is, size_t size)   Load a dictionary up to 'size' bytes from a stream 'is'. More...
  virtual  CCompressionDictionary::~CCompressionDictionary (void)   Destructor. More...
  const void *  CCompressionDictionary::GetData (void)   Return pointer to the dictionary data. More...
  size_t  CCompressionDictionary::GetSize (void)   Return dictionary data size. More...
  void  CCompressionDictionary::Free (void)   Free used memory. More...
  size_t  CCompressionDictionary::LoadFromStream (istream &is, size_t size)     CCompressionProcessor::CCompressionProcessor (void)   virtual  CCompressionProcessor::~CCompressionProcessor (void)   bool  CCompressionProcessor::IsBusy (void) const   Return compressor's busy flag. More...
  virtual bool  CCompressionProcessor::AllowEmptyData () const =0   Return TRUE if fAllowEmptyData flag is set for this compression. More...
  size_t  CCompressionProcessor::GetProcessedSize (void)   size_t  CCompressionProcessor::GetOutputSize (void)   virtual EStatus  CCompressionProcessor::Init (void)=0   Initialize the internal stream state for compression/decompression. More...
  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)=0   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CCompressionProcessor::Flush (char *out_buf, size_t out_size, size_t *out_avail)=0   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CCompressionProcessor::Finish (char *out_buf, size_t out_size, size_t *out_avail)=0   Finish the compression/decompression process. More...
  virtual EStatus  CCompressionProcessor::End (int abandon=0)=0   Free all dynamically allocated data structures. More...
  void  CCompressionProcessor::Reset (void)   Reset internal state. More...
  void  CCompressionProcessor::SetBusy (bool busy=true)   Set/unset compressor busy flag. More...
  void  CCompressionProcessor::IncreaseProcessedSize (size_t n_bytes)   void  CCompressionProcessor::IncreaseOutputSize (size_t n_bytes)   virtual const char *  CCompressionException::GetErrCodeString (void) const override   Translate from the error code value to its string representation. More...
    CCompressionException::NCBI_EXCEPTION_DEFAULT (CCompressionException, CCoreException)   static void  CCompressionUtil::StoreUI4 (void *buf, unsigned long value)   Store 4 bytes of value in the buffer. More...
  static Uint4  CCompressionUtil::GetUI4 (const void *buf)   Read 4 bytes from buffer. More...
  static void  CCompressionUtil::StoreUI2 (void *buf, unsigned long value)   Store 2 bytes of value in the buffer. More...
  static Uint2  CCompressionUtil::GetUI2 (const void *buf)   Read 2 bytes from buffer. More...
  virtual  IChunkHandler::~IChunkHandler (void)   Destructor. More...
  virtual EAction  IChunkHandler::OnChunk (TPosition raw_pos, TPosition data_pos)=0   Callback method, to be implemented by the end user. More...
  static bool  CLZOCompression::Initialize (void)   Initialize LZO library. More...
    CLZOCompression::CLZOCompression (ELevel level=eLevel_Default)   Constructor. More...
  virtual  CLZOCompression::~CLZOCompression (void)   Destructor. More...
  virtual CVersionInfo  CLZOCompression::GetVersion (void) const   Return name and version of the compression library. More...
  virtual ELevel  CLZOCompression::GetLevel (void) const   Get compression level. More...
  virtual ELevel  CLZOCompression::GetDefaultLevel (void) const   Returns default compression level for a compression algorithm. More...
  virtual bool  CLZOCompression::HaveSupport (ESupportFeature feature)   Check if compression have support for a specified feature. More...
  virtual bool  CLZOCompression::CompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)   Compress data in the buffer. More...
  virtual bool  CLZOCompression::DecompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)   Decompress data in the buffer. More...
  virtual size_t  CLZOCompression::EstimateCompressionBufferSize (size_t src_len)   Estimate buffer size for data compression. More...
  static size_t  CLZOCompression::EstimateCompressionBufferSize (size_t src_len, size_t blocksize, TLZOFlags flags)   Estimate buffer size for data compression (advanced version). More...
  static SRecommendedBufferSizes  CLZOCompression::GetRecommendedBufferSizes (size_t round_up=0)   Get recommended buffer sizes for stream/file I/O. More...
  virtual bool  CLZOCompression::CompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Compress file. More...
  virtual bool  CLZOCompression::DecompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t decompression_in_bufsize=kCompressionDefaultBufSize, size_t decompression_out_bufsize=kCompressionDefaultBufSize)   Decompress file. More...
    CLZOCompression::SFileInfo::SFileInfo (void)   virtual bool  CLZOCompression::SetDictionary (CCompressionDictionary &dict, ENcbiOwnership own=eNoOwnership)   void  CLZOCompression::SetBlockSize (size_t block_size)   Block size. More...
  size_t  CLZOCompression::GetBlockSize (void) const   static size_t  CLZOCompression::GetBlockSizeDefault (void)   We use 24K default block size to reduce overhead with a stream processor's methods calls, because compression/decompression output streams use by default (16Kb - 1) as output buffer size. More...
  static size_t  CLZOCompression::GetBlockSizeMin (void)   This is an artifical limit. More...
  static size_t  CLZOCompression::GetBlockSizeMax (void)   LZO can compress/decompress data limited by its 'lzo_uint' type. More...
  void  CLZOCompression::InitCompression (ELevel level)   Initialize compression parameters. More...
  const char *  CLZOCompression::GetLZOErrorDescription (int errcode)   Get error description for specified error code. More...
  string  CLZOCompression::FormatErrorMessage (string where) const   Format string with last error description. More...
  int  CLZOCompression::CompressBlock (const void *src_buf, size_t src_len, void *dst_buf, size_t *dst_len)   Compress block of data. More...
  int  CLZOCompression::CompressBlockStream (const void *src_buf, size_t src_len, void *dst_buf, size_t *dst_len)   Compress block of data for stream format (fStreamFormat flag). More...
  int  CLZOCompression::DecompressBlock (const void *src_buf, size_t src_len, void *dst_buf, size_t *dst_len, TLZOFlags flags)   Decompress block of data. More...
  int  CLZOCompression::DecompressBlockStream (const void *src_buf, size_t src_len, void *dst_buf, size_t *dst_len, TLZOFlags flags, size_t *processed)   Decompress block of data for stream format (fStreamFormat flag). More...
    CLZOCompression::CLZOCompression (const CLZOCompression &)   Private copy constructor to prohibit copy. More...
  CLZOCompressionCLZOCompression::operator= (const CLZOCompression &)   Private assignment operator to prohibit assignment. More...
    CLZOCompressionFile::CLZOCompressionFile (const string &file_name, EMode mode, ELevel level=eLevel_Default, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Constructor. More...
    CLZOCompressionFile::CLZOCompressionFile (ELevel level=eLevel_Default)   Conventional constructor. More...
    CLZOCompressionFile::~CLZOCompressionFile (void)   Destructor. More...
  virtual bool  CLZOCompressionFile::Open (const string &file_name, EMode mode, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Opens a compressed file for reading or writing. More...
  virtual bool  CLZOCompressionFile::Open (const string &file_name, EMode mode, SFileInfo *info, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Opens a compressed file for reading or writing. More...
  virtual long  CLZOCompressionFile::Read (void *buf, size_t len)   Read data from compressed file. More...
  virtual long  CLZOCompressionFile::Write (const void *buf, size_t len)   Write data to compressed file. More...
  virtual bool  CLZOCompressionFile::Close (void)   Close compressed file. More...
  void  CLZOCompressionFile::GetStreamError (void)   Get error code/description of last stream operation (m_Stream). More...
    CLZOCompressionFile::CLZOCompressionFile (const CLZOCompressionFile &)   Private copy constructor to prohibit copy. More...
  CLZOCompressionFileCLZOCompressionFile::operator= (const CLZOCompressionFile &)   Private assignment operator to prohibit assignment. More...
    CLZOBuffer::CLZOBuffer (void)   Constructor. More...
  void  CLZOBuffer::ResetBuffer (size_t in_bufsize, size_t out_bufsize)   Reset internal state. More...
    CLZOBuffer::CLZOBuffer (const CLZOBuffer &)   Private copy constructor to prohibit copy. More...
  CLZOBufferCLZOBuffer::operator= (const CLZOBuffer &)   Private assignment operator to prohibit assignment. More...
    CLZOCompressor::CLZOCompressor (ELevel level=eLevel_Default, TLZOFlags flags=0)   Constructor. More...
  virtual  CLZOCompressor::~CLZOCompressor (void)   Destructor. More...
  virtual bool  CLZOCompressor::AllowEmptyData () const   Return TRUE if fAllowEmptyData flag is set. More...
  void  CLZOCompressor::SetFileInfo (const SFileInfo &info)   Set information about compressed file. More...
  virtual EStatus  CLZOCompressor::Init (void)   Initialize the internal stream state for compression/decompression. More...
  virtual EStatus  CLZOCompressor::Process (const char *in_buf, size_t in_len, char *out_buf, size_t out_size, size_t *in_avail, size_t *out_avail)   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CLZOCompressor::Flush (char *out_buf, size_t out_size, size_t *out_avail)   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CLZOCompressor::Finish (char *out_buf, size_t out_size, size_t *out_avail)   Finish the compression/decompression process. More...
  virtual EStatus  CLZOCompressor::End (int abandon=0)   Free all dynamically allocated data structures. More...
  bool  CLZOCompressor::CompressCache (void)   Compress block of data in the cache buffer. More...
    CLZODecompressor::CLZODecompressor (TLZOFlags flags)   Constructor. More...
  virtual  CLZODecompressor::~CLZODecompressor (void)   Destructor. More...
  virtual bool  CLZODecompressor::AllowEmptyData () const   Return TRUE if fAllowEmptyData flag is set. More...
  virtual EStatus  CLZODecompressor::Init (void)   Initialize the internal stream state for compression/decompression. More...
  virtual EStatus  CLZODecompressor::Process (const char *in_buf, size_t in_len, char *out_buf, size_t out_size, size_t *in_avail, size_t *out_avail)   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CLZODecompressor::Flush (char *out_buf, size_t out_size, size_t *out_avail)   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CLZODecompressor::Finish (char *out_buf, size_t out_size, size_t *out_avail)   Finish the compression/decompression process. More...
  virtual EStatus  CLZODecompressor::End (int abandon=0)   Free all dynamically allocated data structures. More...
  bool  CLZODecompressor::DecompressCache (void)   Decompress block of data in the cache buffer. More...
    CLZOStreamCompressor::CLZOStreamCompressor (CLZOCompression::ELevel level, streamsize in_bufsize, streamsize out_bufsize, CLZOCompression::TLZOFlags flags=0)   Full constructor. More...
    CLZOStreamCompressor::CLZOStreamCompressor (CLZOCompression::ELevel level, CLZOCompression::TLZOFlags flags=0)   Conventional constructor. More...
    CLZOStreamCompressor::CLZOStreamCompressor (CLZOCompression::TLZOFlags flags=0)   Conventional constructor. More...
  CLZOCompressorCLZOStreamCompressor::GetCompressor (void) const   Return a pointer to compressor. More...
    CLZOStreamDecompressor::CLZOStreamDecompressor (streamsize in_bufsize, streamsize out_bufsize, CLZOCompression::TLZOFlags flags=0)   Full constructor. More...
    CLZOStreamDecompressor::CLZOStreamDecompressor (CLZOCompression::TLZOFlags flags=0)   Conventional constructor. More...
  CLZODecompressorCLZOStreamDecompressor::GetDecompressor (void) const   Return a pointer to decompressor. More...
    CNlmZipBtRdr::CNlmZipBtRdr (CByteSourceReader *src)     CNlmZipBtRdr::~CNlmZipBtRdr ()   virtual size_t  CNlmZipBtRdr::Read (char *buffer, size_t bufferLength)   Read up to bufferLength bytes into buffer return amount of bytes read (if zero - see EndOfData()) More...
  virtual bool  CNlmZipBtRdr::Pushback (const char *data, size_t size)     CNlmZipBtRdr::CNlmZipBtRdr (const CNlmZipBtRdr &)   const CNlmZipBtRdrCNlmZipBtRdr::operator= (const CNlmZipBtRdr &)     CDynamicCharArray::CDynamicCharArray (void)     CDynamicCharArray::CDynamicCharArray (size_t size)     CDynamicCharArray::~CDynamicCharArray (void)   char *  CDynamicCharArray::At (size_t pos) const   char *  CDynamicCharArray::Alloc (size_t size)     CDynamicCharArray::CDynamicCharArray (const CDynamicCharArray &)   void  CDynamicCharArray::operator= (const CDynamicCharArray &)     CNlmZipReader::CNlmZipReader (IReader *reader, TOwnership own=fOwnNone, EHeader header=eHeaderCheck)     CNlmZipReader::~CNlmZipReader (void)   virtual ERW_Result  CNlmZipReader::Read (void *buf, size_t count, size_t *bytes_read=0)   Read as many as "count" bytes into a buffer pointed to by the "buf" argument. More...
  virtual ERW_Result  CNlmZipReader::PendingCount (size_t *count)   Via 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. More...
  void  CNlmZipReader::x_StartPlain (void)   void  CNlmZipReader::x_StartDecompressor (void)   size_t  CNlmZipReader::x_ReadZipHeader (char *buffer)   ERW_Result  CNlmZipReader::x_DecompressBuffer (void)   ERW_Result  CNlmZipReader::x_Read (char *buffer, size_t count, size_t *bytes_read)     CNlmZipReader::CNlmZipReader (const CNlmZipReader &)   const CNlmZipReaderCNlmZipReader::operator= (const CNlmZipReader &)   virtual const char *  CTarException::GetErrCodeString (void) const override   Translate from an error code value to its string representation. More...
    CTarException::NCBI_EXCEPTION_DEFAULT (CTarException, CCoreException)   EType  CTarEntryInfo::GetType (void) const   const stringCTarEntryInfo::GetName (void) const   const stringCTarEntryInfo::GetLinkName (void) const   const stringCTarEntryInfo::GetUserName (void) const   const stringCTarEntryInfo::GetGroupName (void) const   time_t  CTarEntryInfo::GetModificationTime (void) const   CTime  CTarEntryInfo::GetModificationCTime (void) const   time_t  CTarEntryInfo::GetLastAccessTime (void) const   CTime  CTarEntryInfo::GetLastAccessCTime (void) const   time_t  CTarEntryInfo::GetCreationTime (void) const   CTime  CTarEntryInfo::GetCreationCTime (void) const   Uint8  CTarEntryInfo::GetSize (void) const   TTarMode  CTarEntryInfo::GetMode (void) const   void  CTarEntryInfo::GetMode (CDirEntry::TMode *user_mode, CDirEntry::TMode *group_mode=0, CDirEntry::TMode *other_mode=0, CDirEntry::TSpecialModeBits *special_bits=0) const   unsigned int  CTarEntryInfo::GetMajor (void) const   unsigned int  CTarEntryInfo::GetMinor (void) const   unsigned int  CTarEntryInfo::GetUserId (void) const   unsigned int  CTarEntryInfo::GetGroupId (void) const   Uint8  CTarEntryInfo::GetPosition (EPos which) const   const stringCTarEntryInfo::GetPath (void) const   bool  CTarEntryInfo::operator== (const CTarEntryInfo &info) const     CTarEntryInfo::CTarEntryInfo (Uint8 pos=0)     CTarUserEntryInfo::CTarUserEntryInfo (const string &name, Uint8 size)   ostream &  operator<< (ostream &, const CTarEntryInfo &)   Nice TOC(table of contents) printout. More...
    CTar::CTar (const string &filename, size_t blocking_factor=20)   Constructors. More...
    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). More...
  virtual  CTar::~CTar ()   Destructor (finalize the archive if currently open). More...
  void  CTar::Create (void)   Create a new empty archive. More...
  void  CTar::Close (void)   Close the archive making sure all pending output is flushed. More...
  unique_ptr< TEntriesCTar::Append (const string &name)   Append an entry at the end of the archive that already exists. More...
  unique_ptr< TEntriesCTar::Append (const CTarUserEntryInfo &entry, CNcbiIstream &is)   Append an entry from a stream (exactly entry.GetSize() bytes). More...
  unique_ptr< TEntriesCTar::Update (const string &name)   Look whether more recent copies of the archive members are available in the file system, and if so, append them to the archive: More...
  unique_ptr< TEntriesCTar::Extract (void)   Extract the entire archive (into either current directory or a directory otherwise specified by SetBaseDir()). More...
  unique_ptr< TEntriesCTar::List (void)   Get information about all matching archive entries. More...
  void  CTar::Test (void)   Verify archive integrity. More...
  TFlags  CTar::GetFlags (void) const   Get processing flags. More...
  void  CTar::SetFlags (TFlags flags)   Set processing flags. More...
  Uint8  CTar::GetCurrentPosition (void) const   Get current stream position. More...
  void  CTar::SetMask (CMask *mask, EOwnership own=eNoOwnership, EMaskType type=eExtractMask, NStr::ECase acase=NStr::eCase)   Set name mask. More...
  const stringCTar::GetBaseDir (void) const   Get base directory to use for files while extracting from/adding to the archive, and in the latter case used only for relative paths. More...
  void  CTar::SetBaseDir (const string &dirname)   Set base directory to use for files while extracting from/adding to the archive, and in the latter case used only for relative paths. More...
  static Uint8  CTar::EstimateArchiveSize (const TFiles &files, size_t blocking_factor=20, const string &base_dir=kEmptyStr)   Return archive size as if all specified input entries were put in it. More...
  const CTarEntryInfoCTar::GetNextEntryInfo (void)   Iterate over the archive forward and return first (or next) entry. More...
  IReaderCTar::GetNextEntryData (void)   Create and return an IReader, which can extract the current archive entry that has been previously returned via GetNextEntryInfo. More...
  static IReaderCTar::Extract (CNcbiIstream &is, const string &name, TFlags flags=fSkipUnsupported)   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). More...
  virtual bool  CTar::Checkpoint (const CTarEntryInfo &, bool)   Return false to skip the current entry when reading; the return code gets ignored when writing. More...
    CTar::SMask::SMask (void)   void  CTar::x_Init (void)   void  CTar::x_Open (EAction action)   void  CTar::x_Close (bool truncate)   bool  CTar::x_Flush (bool nothrow=false)   void  CTar::x_Backspace (EAction action)   void  CTar::x_Skip (Uint8 blocks)   EStatus  CTar::x_ParsePAXData (const string &data)   EStatus  CTar::x_ReadEntryInfo (bool dump, bool pax)   bool  CTar::x_PackCurrentName (STarHeader *header, bool link)   void  CTar::x_WriteEntryInfo (const string &name)   unique_ptr< TEntriesCTar::x_ReadAndProcess (EAction action)   bool  CTar::x_ProcessEntry (EAction action, Uint8 size, const TEntries *done)   bool  CTar::x_ExtractEntry (Uint8 &size, const CDirEntry *dst, const CDirEntry *src)   void  CTar::x_ExtractPlainFile (Uint8 &size, const CDirEntry *dst)   bool  CTar::x_ExtractSparseFile (Uint8 &size, const CDirEntry *dst, bool dump=false)   void  CTar::x_RestoreAttrs (const CTarEntryInfo &info, TFlags what, const CDirEntry *path=0, TTarMode perm=0) const   string  CTar::x_ReadLine (Uint8 &size, const char *&data, size_t &nread)   const char *  CTar::x_ReadArchive (size_t &n)   void  CTar::x_WriteArchive (size_t n, const char *buffer=0)   unique_ptr< TEntriesCTar::x_Append (const string &name, const TEntries *toc=0)   unique_ptr< TEntriesCTar::x_Append (const CTarUserEntryInfo &entry, CNcbiIstream &is)   void  CTar::x_AppendStream (const string &name, CNcbiIstream &is)   bool  CTar::x_AppendFile (const string &file)   CTarCTar::operator= (const CTar &)     CTar::CTar (const CTar &)   static bool  CZipCompression::Initialize (void)   Initialize compression library (for API compatibility, zlib don't need it). More...
    CZipCompression::CZipCompression (ELevel level=eLevel_Default)   Constructor. More...
  virtual  CZipCompression::~CZipCompression (void)   Destructor. More...
  virtual CVersionInfo  CZipCompression::GetVersion (void) const   Return name and version of the compression library. More...
  virtual ELevel  CZipCompression::GetDefaultLevel (void) const   Returns default compression level for a compression algorithm. More...
  virtual bool  CZipCompression::HaveSupport (ESupportFeature feature)   Check if compression have support for a specified feature. More...
  virtual bool  CZipCompression::CompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)   Compress data in the buffer. More...
  virtual bool  CZipCompression::DecompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)   Decompress data in the buffer. More...
  virtual size_t  CZipCompression::EstimateCompressionBufferSize (size_t src_len)   Estimate buffer size for data compression. More...
  static SRecommendedBufferSizes  CZipCompression::GetRecommendedBufferSizes (size_t round_up=0)   Get recommended buffer sizes for stream/file I/O. More...
  virtual bool  CZipCompression::CompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Compress file. More...
  virtual bool  CZipCompression::DecompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t decompression_in_bufsize=kCompressionDefaultBufSize, size_t decompression_out_bufsize=kCompressionDefaultBufSize)   Decompress file. More...
  virtual bool  CZipCompression::DecompressFileIntoDir (const string &src_file, const string &dst_dir, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t decompression_in_bufsize=kCompressionDefaultBufSize, size_t decompression_out_bufsize=kCompressionDefaultBufSize)   Decompress file into specified directory. More...
    CZipCompression::SFileInfo::SFileInfo (void)   virtual bool  CZipCompression::SetDictionary (CCompressionDictionary &dict, ENcbiOwnership own=eNoOwnership)   Set a dictionary for all compression/decompression operations. More...
  void  CZipCompression::SetStrategy (int strategy)   Compression strategy. More...
  int  CZipCompression::GetStrategy (void) const   static int  CZipCompression::GetStrategyDefault (void)   static int  CZipCompression::GetStrategyMin (void)   static int  CZipCompression::GetStrategyMax (void)   void  CZipCompression::SetMemoryLevel (int mem_level)   Memory level. More...
  int  CZipCompression::GetMemoryLevel (void) const   static int  CZipCompression::GetMemoryLevelDefault (void)   static int  CZipCompression::GetMemoryLevelMin (void)   static int  CZipCompression::GetMemoryLevelMax (void)   void  CZipCompression::SetWindowBits (int window_bits)   Window bits. More...
  int  CZipCompression::GetWindowBits (void) const   static int  CZipCompression::GetWindowBitsDefault (void)   static int  CZipCompression::GetWindowBitsMin (void)   static int  CZipCompression::GetWindowBitsMax (void)   string  CZipCompression::FormatErrorMessage (string where, size_t pos=0) const   Format string with last error description. More...
    CZipCompression::CZipCompression (const CZipCompression &)   Private copy constructor to prohibit copy. More...
  CZipCompressionCZipCompression::operator= (const CZipCompression &)   Private assignment operator to prohibit assignment. More...
    CZipCompressionFile::CZipCompressionFile (const string &file_name, EMode mode, ELevel level=eLevel_Default, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Constructor. More...
    CZipCompressionFile::CZipCompressionFile (ELevel level=eLevel_Default)   Conventional constructor. More...
    CZipCompressionFile::~CZipCompressionFile (void)   Destructor. More...
  virtual bool  CZipCompressionFile::Open (const string &file_name, EMode mode, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Opens a compressed file for reading or writing. More...
  virtual bool  CZipCompressionFile::Open (const string &file_name, EMode mode, SFileInfo *info, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Opens a compressed file for reading or writing. More...
  virtual long  CZipCompressionFile::Read (void *buf, size_t len)   Read data from compressed file. More...
  virtual long  CZipCompressionFile::Write (const void *buf, size_t len)   Write data to compressed file. More...
  virtual bool  CZipCompressionFile::Close (void)   Close compressed file. More...
  void  CZipCompressionFile::GetStreamError (void)   Get error code/description of last stream operation (m_Stream). More...
    CZipCompressionFile::CZipCompressionFile (const CZipCompressionFile &)   Private copy constructor to prohibit copy. More...
  CZipCompressionFileCZipCompressionFile::operator= (const CZipCompressionFile &)   Private assignment operator to prohibit assignment. More...
    CZipCompressor::CZipCompressor (ELevel level=eLevel_Default, TZipFlags flags=0)   Constructor. More...
  virtual  CZipCompressor::~CZipCompressor (void)   Destructor. More...
  void  CZipCompressor::SetFileInfo (const SFileInfo &info)   Set information about compressed file. More...
  virtual bool  CZipCompressor::AllowEmptyData () const   Return TRUE if fAllowEmptyData flag is set. More...
  virtual EStatus  CZipCompressor::Init (void)   Initialize the internal stream state for compression/decompression. More...
  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)   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CZipCompressor::Flush (char *out_buf, size_t out_size, size_t *out_avail)   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CZipCompressor::Finish (char *out_buf, size_t out_size, size_t *out_avail)   Finish the compression/decompression process. More...
  virtual EStatus  CZipCompressor::End (int abandon=0)   Free all dynamically allocated data structures. More...
    CZipDecompressor::CZipDecompressor (TZipFlags flags=0)   Constructor. More...
  virtual  CZipDecompressor::~CZipDecompressor (void)   Destructor. More...
  virtual bool  CZipDecompressor::AllowEmptyData () const   Return TRUE if fAllowEmptyData flag is set. More...
  virtual EStatus  CZipDecompressor::Init (void)   Initialize the internal stream state for compression/decompression. More...
  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)   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CZipDecompressor::Flush (char *out_buf, size_t out_size, size_t *out_avail)   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CZipDecompressor::Finish (char *out_buf, size_t out_size, size_t *out_avail)   Finish the compression/decompression process. More...
  virtual EStatus  CZipDecompressor::End (int abandon=0)   Free all dynamically allocated data structures. More...
    CZipStreamCompressor::CZipStreamCompressor (CZipCompression::ELevel level, streamsize in_bufsize, streamsize out_bufsize, CZipCompression::TZipFlags flags=0)   Full constructor. More...
    CZipStreamCompressor::CZipStreamCompressor (CZipCompression::ELevel level, CZipCompression::TZipFlags flags=0)   Conventional constructor. More...
    CZipStreamCompressor::CZipStreamCompressor (CZipCompression::TZipFlags flags=0)   Conventional constructor. More...
  CZipCompressorCZipStreamCompressor::GetCompressor (void) const   Return a pointer to compressor. More...
    CZipStreamDecompressor::CZipStreamDecompressor (streamsize in_bufsize, streamsize out_bufsize, CZipCompression::TZipFlags flags=0)   Full constructor. More...
    CZipStreamDecompressor::CZipStreamDecompressor (CZipCompression::TZipFlags flags=0)   Conventional constructor. More...
  CZipDecompressorCZipStreamDecompressor::GetDecompressor (void) const   Return a pointer to decompressor. More...
  void  g_GZip_ScanForChunks (CNcbiIstream &is, IChunkHandler &handler)   Get list of positions of separate gzip files in the concatenated gzip file. More...
  static bool  CZipCloudflareCompression::Initialize (void)   Initialize compression library (for API compatibility, zlib don't need it). More...
    CZipCloudflareCompression::CZipCloudflareCompression (ELevel level=eLevel_Default)   Constructor. More...
  virtual  CZipCloudflareCompression::~CZipCloudflareCompression (void)   Destructor. More...
  virtual CVersionInfo  CZipCloudflareCompression::GetVersion (void) const   Return name and version of the compression library. More...
  virtual ELevel  CZipCloudflareCompression::GetDefaultLevel (void) const   Returns default compression level for a compression algorithm. More...
  virtual bool  CZipCloudflareCompression::HaveSupport (ESupportFeature feature)   Check if compression have support for a specified feature. More...
  virtual bool  CZipCloudflareCompression::CompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)   Compress data in the buffer. More...
  virtual bool  CZipCloudflareCompression::DecompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)   Decompress data in the buffer. More...
  virtual size_t  CZipCloudflareCompression::EstimateCompressionBufferSize (size_t src_len)   Estimate buffer size for data compression. More...
  static SRecommendedBufferSizes  CZipCloudflareCompression::GetRecommendedBufferSizes (size_t round_up=0)   Get recommended buffer sizes for stream/file I/O. More...
  virtual bool  CZipCloudflareCompression::CompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Compress file. More...
  virtual bool  CZipCloudflareCompression::DecompressFile (const string &src_file, const string &dst_file, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t decompression_in_bufsize=kCompressionDefaultBufSize, size_t decompression_out_bufsize=kCompressionDefaultBufSize)   Decompress file. More...
  virtual bool  CZipCloudflareCompression::DecompressFileIntoDir (const string &src_file, const string &dst_dir, size_t file_io_bufsize=kCompressionDefaultBufSize, size_t decompression_in_bufsize=kCompressionDefaultBufSize, size_t decompression_out_bufsize=kCompressionDefaultBufSize)   Decompress file into specified directory. More...
    CZipCloudflareCompression::SFileInfo::SFileInfo (void)   virtual bool  CZipCloudflareCompression::SetDictionary (CCompressionDictionary &dict, ENcbiOwnership own=eNoOwnership)   Set a dictionary for all compression/decompression operations. More...
  void  CZipCloudflareCompression::SetStrategy (int strategy)   Compression strategy. More...
  int  CZipCloudflareCompression::GetStrategy (void) const   static int  CZipCloudflareCompression::GetStrategyDefault (void)   static int  CZipCloudflareCompression::GetStrategyMin (void)   static int  CZipCloudflareCompression::GetStrategyMax (void)   void  CZipCloudflareCompression::SetMemoryLevel (int mem_level)   Memory level. More...
  int  CZipCloudflareCompression::GetMemoryLevel (void) const   static int  CZipCloudflareCompression::GetMemoryLevelDefault (void)   static int  CZipCloudflareCompression::GetMemoryLevelMin (void)   static int  CZipCloudflareCompression::GetMemoryLevelMax (void)   void  CZipCloudflareCompression::SetWindowBits (int window_bits)   Window bits. More...
  int  CZipCloudflareCompression::GetWindowBits (void) const   static int  CZipCloudflareCompression::GetWindowBitsDefault (void)   static int  CZipCloudflareCompression::GetWindowBitsMin (void)   static int  CZipCloudflareCompression::GetWindowBitsMax (void)   string  CZipCloudflareCompression::FormatErrorMessage (string where, size_t pos=0) const   Format string with last error description. More...
    CZipCloudflareCompression::CZipCloudflareCompression (const CZipCloudflareCompression &)   Private copy constructor to prohibit copy. More...
  CZipCloudflareCompressionCZipCloudflareCompression::operator= (const CZipCloudflareCompression &)   Private assignment operator to prohibit assignment. More...
    CZipCloudflareCompressionFile::CZipCloudflareCompressionFile (const string &file_name, EMode mode, ELevel level=eLevel_Default, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Constructor. More...
    CZipCloudflareCompressionFile::CZipCloudflareCompressionFile (ELevel level=eLevel_Default)   Conventional constructor. More...
    CZipCloudflareCompressionFile::~CZipCloudflareCompressionFile (void)   Destructor. More...
  virtual bool  CZipCloudflareCompressionFile::Open (const string &file_name, EMode mode, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Opens a compressed file for reading or writing. More...
  virtual bool  CZipCloudflareCompressionFile::Open (const string &file_name, EMode mode, SFileInfo *info, size_t compression_in_bufsize=kCompressionDefaultBufSize, size_t compression_out_bufsize=kCompressionDefaultBufSize)   Opens a compressed file for reading or writing. More...
  virtual long  CZipCloudflareCompressionFile::Read (void *buf, size_t len)   Read data from compressed file. More...
  virtual long  CZipCloudflareCompressionFile::Write (const void *buf, size_t len)   Write data to compressed file. More...
  virtual bool  CZipCloudflareCompressionFile::Close (void)   Close compressed file. More...
  void  CZipCloudflareCompressionFile::GetStreamError (void)   Get error code/description of last stream operation (m_Stream). More...
    CZipCloudflareCompressionFile::CZipCloudflareCompressionFile (const CZipCloudflareCompressionFile &)   Private copy constructor to prohibit copy. More...
  CZipCloudflareCompressionFileCZipCloudflareCompressionFile::operator= (const CZipCloudflareCompressionFile &)   Private assignment operator to prohibit assignment. More...
    CZipCloudflareCompressor::CZipCloudflareCompressor (ELevel level=eLevel_Default, TZipFlags flags=0)   Constructor. More...
  virtual  CZipCloudflareCompressor::~CZipCloudflareCompressor (void)   Destructor. More...
  void  CZipCloudflareCompressor::SetFileInfo (const SFileInfo &info)   Set information about compressed file. More...
  virtual bool  CZipCloudflareCompressor::AllowEmptyData () const   Return TRUE if fAllowEmptyData flag is set. More...
  virtual EStatus  CZipCloudflareCompressor::Init (void)   Initialize the internal stream state for compression/decompression. More...
  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)   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CZipCloudflareCompressor::Flush (char *out_buf, size_t out_size, size_t *out_avail)   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CZipCloudflareCompressor::Finish (char *out_buf, size_t out_size, size_t *out_avail)   Finish the compression/decompression process. More...
  virtual EStatus  CZipCloudflareCompressor::End (int abandon=0)   Free all dynamically allocated data structures. More...
    CZipCloudflareDecompressor::CZipCloudflareDecompressor (TZipFlags flags=0)   Constructor. More...
  virtual  CZipCloudflareDecompressor::~CZipCloudflareDecompressor (void)   Destructor. More...
  virtual bool  CZipCloudflareDecompressor::AllowEmptyData () const   Return TRUE if fAllowEmptyData flag is set. More...
  virtual EStatus  CZipCloudflareDecompressor::Init (void)   Initialize the internal stream state for compression/decompression. More...
  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)   Compress/decompress as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. More...
  virtual EStatus  CZipCloudflareDecompressor::Flush (char *out_buf, size_t out_size, size_t *out_avail)   Flush compressed/decompressed data from the output buffer. More...
  virtual EStatus  CZipCloudflareDecompressor::Finish (char *out_buf, size_t out_size, size_t *out_avail)   Finish the compression/decompression process. More...
  virtual EStatus  CZipCloudflareDecompressor::End (int abandon=0)   Free all dynamically allocated data structures. More...
    CZipCloudflareStreamCompressor::CZipCloudflareStreamCompressor (CZipCloudflareCompression::ELevel level, streamsize in_bufsize, streamsize out_bufsize, CZipCloudflareCompression::TZipFlags flags=0)   Full constructor. More...
    CZipCloudflareStreamCompressor::CZipCloudflareStreamCompressor (CZipCloudflareCompression::ELevel level, CZipCloudflareCompression::TZipFlags flags=0)   Conventional constructor. More...
    CZipCloudflareStreamCompressor::CZipCloudflareStreamCompressor (CZipCloudflareCompression::TZipFlags flags=0)   Conventional constructor. More...
  CZipCloudflareCompressorCZipCloudflareStreamCompressor::GetCompressor (void) const   Return a pointer to compressor. More...
    CZipCloudflareStreamDecompressor::CZipCloudflareStreamDecompressor (streamsize in_bufsize, streamsize out_bufsize, CZipCloudflareCompression::TZipFlags flags=0)   Full constructor. More...
    CZipCloudflareStreamDecompressor::CZipCloudflareStreamDecompressor (CZipCloudflareCompression::TZipFlags flags=0)   Conventional constructor. More...
  CZipCloudflareDecompressorCZipCloudflareStreamDecompressor::GetDecompressor (void) const   Return a pointer to decompressor. More...
  void  g_GZip_Cloudflare_ScanForChunks (CNcbiIstream &is, IChunkHandler &handler)   Get list of positions of separate gzip files in the concatenated gzip file. More...
    CArchiveZip::CArchiveZip (void)   Constructor. More...
  virtual  CArchiveZip::~CArchiveZip (void)   Destructor. More...
  virtual void  CArchiveZip::CreateFile (const string &filename)   Create new archive file. More...
  virtual void  CArchiveZip::CreateFileStream (FILE *filestream)   Create new archive file on top of a FILE stream. More...
  virtual void  CArchiveZip::CreateMemory (size_t initial_allocation_size=0)   Create new archive located in memory. More...
  virtual void  CArchiveZip::OpenFile (const string &filename)   Open archive file for reading. More...
  virtual void  CArchiveZip::OpenFileStream (FILE *filestream, Uint8 archive_size=0)   Open archive from a FILE stream, beginning at the current file position. More...
  virtual void  CArchiveZip::OpenMemory (const void *buf, size_t size)   Open archive located in memory for reading. More...
  virtual void  CArchiveZip::Close (void)   Close the archive. More...
  virtual void  CArchiveZip::FinalizeMemory (void **buf, size_t *size)   Finalize the archive created in memory. More...
  virtual size_t  CArchiveZip::GetNumEntries (void)   Returns the total number of entries in the archive. More...
  virtual void  CArchiveZip::GetEntryInfo (size_t index, CArchiveEntryInfo *info)   Get detailed information about an archive entry by index. More...
  virtual bool  CArchiveZip::HaveSupport_Type (CDirEntry::EType type)   Check that current archive format have support for specific feature. More...
  virtual bool  CArchiveZip::HaveSupport_AbsolutePath (void)   virtual bool  CArchiveZip::HaveSupport_FileStream (void)   virtual void  CArchiveZip::ExtractEntryToFileSystem (const CArchiveEntryInfo &info, const string &dst_path)   Extracts an archive entry to file system. More...
  virtual void  CArchiveZip::ExtractEntryToMemory (const CArchiveEntryInfo &info, void *buf, size_t size)   Extracts an archive file to a memory buffer. More...
  virtual void  CArchiveZip::ExtractEntryToCallback (const CArchiveEntryInfo &info, Callback_Write callback)   Extracts an archive file using user-defined callback to process extracted data. More...
  virtual void  CArchiveZip::TestEntry (const CArchiveEntryInfo &info)   Verify entry integrity. More...
  virtual void  CArchiveZip::SkipEntry (const CArchiveEntryInfo &)   Don't need to be implemented for ZIP format. More...
  virtual void  CArchiveZip::AddEntryFromFileSystem (const CArchiveEntryInfo &info, const string &src_path, ELevel level)   Add single entry to newly created archive from file system. More...
  virtual void  CArchiveZip::AddEntryFromMemory (const CArchiveEntryInfo &info, void *buf, size_t size, ELevel level)   Add entry to newly created archive from memory buffer. More...
  ◆ COMPRESS_HANDLE_EXCEPTIONS #define COMPRESS_HANDLE_EXCEPTIONS (   subcode,   message  ) Value:

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_COMPRESS

Macro 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_Write

Type of user-defined callback for extraction from archive.

It can be used to extract data from a single archive entry on the fly.

Parameters
info A current entry that is processed. buf Pointer to buffer with data. n Size of data in the buffer.
Returns
The callback function should process all incoming data and return 'n' for success. If returning value don't equal the number of bytes in the incoming buffer, that extraction fail.

Definition at line 216 of file archive_.hpp.

◆ ELevel [1/2] ◆ ELevel [2/2] ◆ EType

Archive entry type (the same as directory entry type).

Definition at line 115 of file archive_.hpp.

◆ TBZip2Flags

Bitwise 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.

◆ TLZOFlags

Bitwise OR of EFlags.

Definition at line 165 of file lzo.hpp.

◆ TOwnership ◆ TPosition

Type to store stream positions.

Definition at line 633 of file compress.hpp.

◆ TTarMode

Bitwise 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  eTest 

Definition at line 396 of file archive.hpp.

◆ EAction [2/3]

Action types.

Enumerator eAction_Continue 

Continue scanning to the next data chunk, if any.

eAction_Stop 

Stop scanning.

Definition at line 636 of file compress.hpp.

◆ EAction [3/3] Enumerator eUndefined  eList  eAppend  eUpdate  eExtract  eTest  eCreate  eInternal 

Definition at line 672 of file tar.hpp.

◆ EDecompressMode

Decompression mode (see fAllowTransparentRead flag).

Enumerator eMode_Unknown 

Not known yet (decompress/transparent read)

eMode_Decompress 

Generic decompression.

eMode_TransparentRead 

Transparent read, the data is uncompressed.

Definition at line 331 of file compress.hpp.

◆ EDirection

Processing direction.

Enumerator eRead 

Reading from archive.

eWrite 

Writing 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  eRestoreAttrs 

Definition at line 64 of file archive_.hpp.

◆ EErrCode [2/3] Enumerator eCompression 

Compression/decompression error.

eCompressionFile 

Compression/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  eRestoreAttrs 

Definition at line 110 of file tar.hpp.

◆ EFlags [1/6]

General flags.

Enumerator fOverwrite 

Allow to overwrite destinations with entries from the archive.

fUpdate 

Only update entries that are older than those already existing.

fBackup 

Backup destinations if they exist (all entries including dirs)

fEqualTypes 

If destination entry exists, it must have the same type as source.

fPreserveOwner 

Create extracted files with the original ownership.

fPreserveMode 

Create extracted files with the original permissions.

fPreserveTime 

Preserve 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.

fPreserveAll 

Preserve all file attributes.

fFollowLinks 

Follow symbolic links (instead of storing/extracting them)

fSkipUnsupported 

Skip 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.

fDefault 

Default flags.

Definition at line 73 of file archive.hpp.

◆ EFlags [2/6]

Compression/decompression flags.

Enumerator fAllowTransparentRead 

Allow 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.

fAllowEmptyData 

Allow 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 fAllowTransparentRead 

Allow 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.

fAllowEmptyData 

Allow 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.

fChecksum 

Add/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.

fStreamFormat 

Use 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.

Note
This flag is reguired to compress data > 4GB. LZO default single block compression cannot handle such large amount of data on some platforms.
fStoreFileInfo 

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 fIgnoreZeroBlocks 

Ignore blocks of zeros in archive.

fFollowLinks 

Follow symbolic links (instead of storing/extracting them)

fOverwrite 

Allow to overwrite destinations with entries from the archive.

fUpdate 

Only update entries that are older than those already existing.

fBackup 

Backup destinations if they exist (all entries including dirs)

fEqualTypes 

If destination entry exists, it must have the same type as source.

fPreserveOwner 

Create extracted files with the original ownership.

fPreserveMode 

Create extracted files with the original permissions.

fPreserveTime 

Preserve date/times for extracted files.

fPreserveAll 

Preserve all file attributes.

fKeepAbsolutePath 

Preserve absolute path instead of stripping the leadind slash('/')

fSparseUnsupported 

Do not extract PAX GNU/1.0 sparse files (treat 'em as unsupported)

fSkipUnsupported 

Skip unsupported entries rather than make files out of them when extracting (the latter is the default behavior required by POSIX)

fIgnoreUnreadable 

Ignore unreadable files/dirs (still warn them, but don't stop)

fLongNameSupplement 

Always use OldGNU headers for long names (default:only when needed)

fDumpEntryHeaders  fSlowSkipWithRead  fIgnoreNameCase 

Ignore case difference in names.

fConflictOverwrite 

Conflict overwrite allowed for entries.

fStreamPipeThrough 

Stream tar data through.

fTarfileNoTruncate 

Do not trim tar file size after append/update.

fStandardHeaderOnly 

Suppress NCBI signatures in entry headers.

fDefault 

Default flags.

Definition at line 304 of file tar.hpp.

◆ EFlags [5/6]

Compression/decompression flags.

Enumerator fAllowTransparentRead 

Allow 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.

fAllowEmptyData 

Allow 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.

fCheckFileHeader 

Check (and skip) gzip file header on decompression stage.

fWriteGZipFormat 

Use 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.

fAllowConcatenatedGZip 

Allow 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.

fGZip 

Set of flags for gzip file support. See each flag description above.

fRestoreFileAttr 

This 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.

See also
DecompressFile, DecompressFileIntoDir

Definition at line 87 of file zlib.hpp.

◆ EFlags [6/6]

Compression/decompression flags.

Enumerator fAllowTransparentRead 

Allow 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.

fAllowEmptyData 

Allow 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.

fCheckFileHeader 

Check (and skip) gzip file header on decompression stage.

fWriteGZipFormat 

Use 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.

fAllowConcatenatedGZip 

Allow 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.

fGZip 

Set of flags for gzip file support. See each flag description above.

fRestoreFileAttr 

This 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.

See also
DecompressFile, DecompressFileIntoDir

Definition at line 81 of file zlib_cloudflare.hpp.

◆ EFormat ◆ EHeader Enumerator eHeaderNone  eHeaderAlways  eHeaderCheck 

Definition at line 121 of file reader_zlib.hpp.

◆ ELevel

Compression 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).

Note
Each compression library/algorithm have its own set of compression levels, than not usually fit into [0..9] range. But for convenience of use and easier switching we prowide conversion between levels, whehe "lowest" is a always a minimem allowed compression level, and "best" is a maximum. All other approximately fits in between.
Enumerator eLevel_Default  eLevel_NoCompression  eLevel_Lowest  eLevel_VeryLow  eLevel_Low  eLevel_MediumLow  eLevel_Medium  eLevel_MediumHigh  eLevel_High  eLevel_VeryHigh  eLevel_Best 

Definition at line 142 of file compress.hpp.

◆ ELocation

Archive location.

Enumerator eFile 

File-based archive.

eFileStream 

File stream based archive (FILE*)

eMemory 

Memory-based archive.

Definition at line 197 of file archive_.hpp.

◆ EMaskType [1/2] Enumerator eFullPathMask  ePatternMask 

Definition at line 319 of file archive.hpp.

◆ EMaskType [2/2] Enumerator eExtractMask 

exact for list or extract

eExcludeMask 

pattern for all but test

Definition at line 379 of file tar.hpp.

◆ EMode

File open mode.

Enumerator eMode_Read 

Reading from compressed file.

eMode_Write 

Writing compressed data to file.

Definition at line 371 of file compress.hpp.

◆ EOpenMode [1/2]

Archive open mode.

Enumerator eNone  eRO  eWO  eRW 

Definition at line 388 of file archive.hpp.

◆ EOpenMode [2/2]

Archive open mode and action.

Enumerator eNone  eWO  eRO  eRW 

Definition at line 666 of file tar.hpp.

◆ EOwnership

Which of the objects (passed in the constructor) should be deleted on this object's destruction.

Enumerator fOwnNone  fOwnReader  fOwnAll 

Definition at line 111 of file reader_zlib.hpp.

◆ EPos

Position type.

Enumerator ePos_Header  ePos_Data 

Definition at line 179 of file tar.hpp.

◆ EStatus [1/2]

Type of the result of all basic functions.

Enumerator eStatus_Success 

Everything is fine, no errors occurred.

eStatus_EndOfData 

Special case of eStatus_Success.

Logical end of (compressed) stream is detected, no errors occurred. All subsequent inquiries about data processing should be ignored.

eStatus_Error 

Error has occurred. The error code can be acquired by GetErrorCode().

eStatus_Overflow 

Output buffer overflow - not enough output space.

Buffer must be emptied and the last action repeated.

eStatus_Repeat 

Special value. Just need to repeat last action.

eStatus_Unknown 

Special value. Status is undefined.

Definition at line 467 of file compress.hpp.

◆ EStatus [2/2]

I/O completion code.

Enumerator eFailure  eSuccess  eContinue  eZeroBlock  eEOF 

Definition at line 683 of file tar.hpp.

◆ ESupportFeature [1/2] Enumerator eFeature_Type  eFeature_AbsolutePath  eFeature_FileStream 

Definition at line 371 of file archive.hpp.

◆ ESupportFeature [2/2]

Supported features.

Enumerator eFeature_NoCompression 

Check 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.

See also
GetLevel, ELevel
eFeature_Dictionary 

Check if current compression have support for dictionaries.

Without support SetDictionary() always return FALSE.

See also
SetDictionary
eFeature_EstimateCompressionBufferSize 

Check if current compression have implementation for the EstimateCompressionBufferSize() method.

Without support it always return 0.

See also
EstimateCompressionBufferSize, CompressBuffer

Definition at line 191 of file compress.hpp.

◆ ETarModeBits

TTarMode –.

Permission bits as defined in tar

Enumerator fTarSetUID 

set UID on execution

fTarSetGID 

set GID on execution

fTarSticky 

reserved (sticky bit)

fTarURead 

read by owner

fTarUWrite 

write by owner

fTarUExecute 

execute/search by owner

fTarGRead 

read by group

fTarGWrite 

write by group

fTarGExecute 

execute/search by group

fTarORead 

read by other

fTarOWrite 

write by other

fTarOExecute 

execute/search by other

Definition at line 73 of file tar.hpp.

◆ EType [1/2] Enumerator eType_unknown  eType_plain  eType_zlib 

Definition at line 56 of file reader_zlib.hpp.

◆ EType [2/2]

Archive entry type.

Enumerator eFile 

Regular file.

eDir 

Directory.

eSymLink 

Symbolic link.

ePipe 

Pipe (FIFO)

eCharDev 

Character device.

eBlockDev 

Block device.

eUnknown 

Unknown type.

eHardLink 

Hard link.

eVolHeader 

Volume header.

ePAXHeader 

PAX extended header.

eSparseFile 

GNU/STAR sparse file.

eGNULongName 

GNU long name.

eGNULongLink 

GNU long link.

Definition at line 162 of file tar.hpp.

◆ AddEntryFromFileSystem() [1/2]

Add single entry to newly created archive from file system.

Parameters
info Entry information to add. It should have name and type of adding entry at least. If added entry is a directory, just add an information about it to archive. CArchive process all directories recursively. src_path Path to file system object to add. level Compression level used to compress file .
See also
CreateFile, CreateMemory, AddEntryFromMemory

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.

Parameters
info Entry information to add. It should have name and type of adding entry at least. If added entry is a directory, just add an information about it to archive. CArchive process all directories recursively. src_path Path to file system object to add. level Compression level used to compress file .
See also
CreateFile, CreateMemory, AddEntryFromMemory

Implemented in CArchiveZip.

◆ AddEntryFromMemory() [1/2] ◆ AddEntryFromMemory() [2/2]

Add entry to newly created archive from memory buffer.

Parameters
info Entry information to add. It should have name and type of adding entry at least. buf Memory buffer with data to add. size Size of data in memory buffer. level Compression level for added data.
See also
CreateFile, CreateMemory, AddEntryFromFileSystem

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.

Warning
Adding to a stream archive does not seek to the logical end of the archive but begins at the current position right away.
Returns
A list of entries appended.
See also
Create, Update, SetBaseDir, SetMask

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).

Parameters
path Path to appended entry. level Compression level (if selected format support it, or default). comment Optional comment for the appended entry (if selected format support it). For directories the comment will be added to upper directory only.
Returns
A list of entries appended.
Note
On the current moment you can use this method to add files to newly created archive only, modifying existed archive is not allowed.
See also
Create, AppendFileFromMemory, SetBaseDir, HaveSupport, Update

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.

Parameters
name_in_archive Name of the file entry in the archive. You can use any symbols, that allowed for file names. Also, you can use relative path here, if you want to create some structure in the archive and put the data to a file in the subdirectory. buf Buffer with data to add. buf_size Size of data in the buffer. level Compression level (if selected format support it, or default). comment Optional comment for the appended entry (if selected format support it).
Returns
An information about added entry.
Note
On the current moment you can use this method to add files to newly created archive only, modification existing archive is not allowed.
See also
Create, Append

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.

Parameters
format Archive format. fd File/socket descriptor to write archive to. Socket descriptor should be already connected and file descriptor should be opened for writing before creating an archive.
See also
Append, AppendFileFromMemory, Close

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.

Parameters
format Archive format. buf Pointer to an archive located in memory. Used only to open already existed archive for reading. Never used if you would like to create new archive, see Create(). buf_size Size of the archive.
See also
Create, Extract, List, Test, Append

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.

Note
This constructor don't allow to use any advanced compression parameters or a dictionary. If you need to set any of them, please use simplified conventional constructor, set advanced parameters and use Open().
Current implementation uses default bzip2 methods to work with compression files, so in/out buffer sizes are not used, and added for API uniformity only.
◆ CBZip2CompressionFile() [3/3]

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 stringfilename ) ◆ 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 stringpath, 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  ) inline

Definition 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  ) virtual

Close compressed file.

Flushes all pending output if necessary, closes the compressed file.

Returns
TRUE on success, FALSE on error.
See also
Open, Read, Write

Implements CCompressionFile.

◆ Close() [4/10] bool CLZOCompressionFile::Close ( void  ) virtual

Close compressed file.

Flushes all pending output if necessary, closes the compressed file.

Returns
TRUE on success, FALSE on error.
See also
Open, Read, Write

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  ) inline

Close 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.

See also
~CTar

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  ) virtual

Close compressed file.

Flushes all pending output if necessary, closes the compressed file.

Returns
TRUE on success, FALSE on error.
See also
Open, Read, Write

Implements CCompressionFile.

◆ Close() [7/10] virtual bool CZipCloudflareCompressionFile::Close ( void  ) virtual

Close compressed file.

Flushes all pending output if necessary, closes the compressed file.

Returns
TRUE on success, FALSE on error.
See also
Open, Read, Write

Implements CCompressionFile.

◆ Close() [8/10] void CArchiveZip::Close ( void  ) virtual

Close 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.

See also
FinalizeMemory, OpenFile, OpenMemory

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 virtual

Close 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.

See also
FinalizeMemory, OpenFile, OpenMemory

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  ) protected

Compress block of data.

Returns
Return compressor error code.

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  ) virtual

Compress data in the buffer.

Altogether, the total size of the destination buffer must be little more then size of the source buffer.

Parameters
src_buf [in] Source buffer. src_len [in] Size of data in source buffer. dst_buf [in] Destination buffer. dst_size [in] Size of destination buffer. dst_len [out] Size of compressed data in destination buffer.
Returns
Return TRUE if operation was succesfully or FALSE otherwise. On success, 'dst_buf' contains compressed data of dst_len size.
See also
DecompressBuffer

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  ) virtual

Compress data in the buffer.

Parameters
src_buf [in] Source buffer. src_len [in] Size of data in source buffer. dst_buf [in] Destination buffer. dst_size [in] Size of destination buffer. The size of the destination buffer must be a little more then size of the source buffer. dst_len [out] Size of compressed data in destination buffer.
Returns
Return TRUE if operation was successfully or FALSE otherwise. On success, 'dst_buf' contains compressed data of dst_len size.
Note
Use fStreamFormat flag to compress data > 4GB. LZO default single block compression cannot handle such large amount of data on some platforms.
See also
EstimateCompressionBufferSize, DecompressBuffer

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  ) virtual

Compress data in the buffer.

Parameters
src_buf Source buffer. src_len Size of data in source buffer. dst_buf Destination buffer. dst_size Size of destination buffer. In some cases, small source data or bad compressed data for example, it should be a little more then size of the source buffer. dst_len Size of compressed data in destination buffer.
Returns
Return TRUE if operation was successfully or FALSE otherwise. On success, 'dst_buf' contains compressed data of 'dst_len' size.
See also
EstimateCompressionBufferSize, DecompressBuffer

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  ) virtual

Compress data in the buffer.

Parameters
src_buf Source buffer. src_len Size of data in source buffer. dst_buf Destination buffer. dst_size Size of destination buffer. In some cases, small source data or bad compressed data for example, it should be a little more then size of the source buffer. dst_len Size of compressed data in destination buffer.
Returns
Return TRUE if operation was successfully or FALSE otherwise. On success, 'dst_buf' contains compressed data of 'dst_len' size.
See also
EstimateCompressionBufferSize, DecompressBuffer

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.

Parameters
src_file File name of source file. dst_file File name of result file. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a compressor. compression_in_bufsize Size of the internal buffer holding input data to be compressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. compression_out_bufsize Size of the internal buffer to receive data from a compressor.
Returns
Return TRUE on success, FALSE on error.
Note
This method don't store any file meta information like name, date/time, owner or attributes.
See also
DecompressFile, GetRecommendedBufferSizes, CBZip2CompressionFile

Implements ICompression.

◆ CompressFile() [2/5]

Compress file.

Parameters
src_file File name of source file. dst_file File name of result file. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a compressor. compression_in_bufsize Size of the internal buffer holding input data to be compressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. compression_out_bufsize Size of the internal buffer to receive data from a compressor.
Returns
Return TRUE on success, FALSE on error.
Note
This method don't store any file meta information like name, date/time, owner or attributes.
See also
DecompressFile, GetRecommendedBufferSizes, CLZOCompressionFile

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.

Parameters
src_file File name of source file. dst_file File name of result file. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a compressor. compression_in_bufsize Size of the internal buffer holding input data to be compressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. compression_out_bufsize Size of the internal buffer to receive data from a compressor.
Returns
Return TRUE on success, FALSE on error.
Note
This method, as well as some gzip utilities, always keeps the original file name and timestamp in the compressed file. On this moment DecompressFile() method do not use original file name at all, but be aware... If you assign different base name to destination compressed file, that behavior of decompression utilities on different platforms may differ. For example, WinZip on MS Windows always restore original file name and timestamp stored in the file. UNIX gunzip have -N option for this, but by default do not use it, and just creates a decompressed file with the name of the compressed file without .gz extension.
See also
DecompressFile, DecompressFileIntoDir, GetRecommendedBufferSizes, CZipCompressionFile

Implements ICompression.

◆ CompressFile() [4/5]

Compress file.

Parameters
src_file File name of source file. dst_file File name of result file. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a compressor. compression_in_bufsize Size of the internal buffer holding input data to be compressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. compression_out_bufsize Size of the internal buffer to receive data from a compressor.
Returns
Return TRUE on success, FALSE on error.
Note
This method, as well as some gzip utilities, always keeps the original file name and timestamp in the compressed file. On this moment DecompressFile() method do not use original file name at all, but be aware... If you assign different base name to destination compressed file, that behavior of decompression utilities on different platforms may differ. For example, WinZip on MS Windows always restore original file name and timestamp stored in the file. UNIX gunzip have -N option for this, but by default do not use it, and just creates a decompressed file with the name of the compressed file without .gz extension.
See also
DecompressFile, DecompressFileIntoDir, GetRecommendedBufferSizes, CZipCloudflareCompressionFile

Implements ICompression.

◆ CompressFile() [5/5] ◆ Create() [1/5] void CArchiveMemory::Create ( size_t  initial_allocation_size ) virtual

Create a new empty archive in memory.

Parameters
initial_allocation_size Estimated size of the archive, if known. Bigger size allow to avoid extra memory reallocations.
See also
Append, Finalize

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 stringfilename ) virtual

Create new archive file.

Parameters
filename File name of the archive to create.
Note
File can be overwritten if exists.
See also
CreateMemory, AddEntryFromFile, AddEntryFromMemory

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 stringfilename ) pure virtual ◆ CreateFileStream() [1/2] void CArchiveZip::CreateFileStream ( FILE *  filestream ) virtual

Create new archive file on top of a FILE stream.

Parameters
filestream File stream that can be used for archive operations.
Note
File stream should be opened with necessary flags to allow read/write, depending on performing archive operations.
The file stream will not be closed after closing archive with Close() .
See also
CreateFile, CreateMemory, AddEntryFromFile, AddEntryFromMemory

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 virtual

Create new archive file on top of a FILE stream.

Parameters
filestream File stream that can be used for archive operations.
Note
File stream should be opened with necessary flags to allow read/write, depending on performing archive operations.
The file stream will not be closed after closing archive with Close() .
See also
CreateFile, CreateMemory, AddEntryFromFile, AddEntryFromMemory

Implemented in CArchiveZip.

◆ CreateMemory() [1/2] void CArchiveZip::CreateMemory ( size_t  initial_allocation_size = 0 ) virtual

Create new archive located in memory.

Parameters
initial_allocation_size Estimated size of the archive, if known. Bigger size allow to avoid extra memory reallocations.
See also
FinalizeMemory, AddEntryFromFile, AddEntryFromMemory

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.

Parameters
initial_allocation_size Estimated size of the archive, if known. Bigger size allow to avoid extra memory reallocations.
See also
FinalizeMemory, AddEntryFromFile, AddEntryFromMemory

Implemented in CArchiveZip.

◆ CTar() [1/3] CTar::CTar ( CNcbiIosstream, 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 stringfilename, 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.

Note
For setting up advanced compression parameters see Set*() methods.
◆ CZipCloudflareCompressionFile() [1/3]

Private copy constructor to prohibit copy.

◆ CZipCloudflareCompressionFile() [2/3]

Constructor.

Automatically calls Open() with given file name, mode and compression level.

Note
This constructor don't allow to use any advanced compression parameters or a dictionary. If you need to set any of them, please use simplified conventional constructor, set advanced parameters and use Open().
◆ CZipCloudflareCompressionFile() [3/3]

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.

Note
For setting up advanced compression parameters see Set*() methods.
◆ CZipCompressionFile() [1/3]

Private copy constructor to prohibit copy.

◆ CZipCompressionFile() [2/3]

Constructor.

Automatically calls Open() with given file name, mode and compression level.

Note
This constructor don't allow to use any advanced compression parameters or a dictionary. If you need to set any of them, please use simplified conventional constructor, set advanced parameters and use Open().
◆ CZipCompressionFile() [3/3]

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  ) virtual

Decompress data in the buffer.

Parameters
src_buf Source buffer. src_len Size of data in source buffer. dst_buf Destination buffer. dst_size Size of destination buffer. It must be large enough to hold all of the uncompressed data for the operation to complete. dst_len Size of decompressed data in destination buffer.
Returns
Return TRUE if operation was successfully or FALSE otherwise. On success, 'dst_buf' contains decompressed data of dst_len size.
See also
CompressBuffer

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  ) virtual

Decompress data in the buffer.

Parameters
src_buf Source buffer. src_len Size of data in source buffer. dst_buf Destination buffer. dst_size Size of destination buffer. It must be large enough to hold all of the uncompressed data for the operation to complete. dst_len Size of decompressed data in destination buffer.
Returns
Return TRUE if operation was successfully or FALSE otherwise. On success, 'dst_buf' contains decompressed data of dst_len size.
Note
Use fStreamFormat flag to decompress data, compressed using streams, or CompressBuffer() with this flag.
See also
CompressBuffer

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  ) virtual

Decompress data in the buffer.

Note
The decompressor stops and returns TRUE, if it find logical end in the compressed data, even not all compressed data was processed. Only for case of decompressing concatenated gzip files in memory it try to decompress data behind of logical end of recurrent gzip chunk, to check on next portion of data. See fCheckFileHeader, fAllowConcatenatedGZip and fGZip flags description.
Parameters
src_buf Source buffer. src_len Size of data in source buffer. dst_buf Destination buffer. It must be large enough to hold all of the uncompressed data for the operation to complete. dst_size Size of destination buffer. dst_len Size of decompressed data in destination buffer.
Returns
Return TRUE if operation was successfully or FALSE otherwise. On success, 'dst_buf' contains decompressed data of dst_len size.
See also
CompressBuffer, EFlags

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  ) virtual

Decompress data in the buffer.

Note
The decompressor stops and returns TRUE, if it find logical end in the compressed data, even not all compressed data was processed. Only for case of decompressing concatenated gzip files in memory it try to decompress data behind of logical end of recurrent gzip chunk, to check on next portion of data. See fCheckFileHeader, fAllowConcatenatedGZip and fGZip flags description.
Parameters
src_buf Source buffer. src_len Size of data in source buffer. dst_buf Destination buffer. It must be large enough to hold all of the uncompressed data for the operation to complete. dst_size Size of destination buffer. dst_len Size of decompressed data in destination buffer.
Returns
Return TRUE if operation was successfully or FALSE otherwise. On success, 'dst_buf' contains decompressed data of dst_len size.
See also
CompressBuffer, EFlags

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  ) protected

Decompress 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.

Parameters
src_file File name of source file. dst_file File name of result file. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a decompressor. decompression_in_bufsize Size of the internal buffer holding input data to be decompressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. decompression_out_bufsize Size of the internal buffer to receive data from a decompressor.
Returns
Return TRUE on success, FALSE on error.
See also
CompressFile, GetRecommendedBufferSizes, CBZip2CompressionFile

Implements ICompression.

◆ DecompressFile() [3/5]

Decompress file.

Parameters
src_file File name of source file. dst_file File name of result file. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a decompressor. decompression_in_bufsize Size of the internal buffer holding input data to be decompressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. decompression_out_bufsize Size of the internal buffer to receive data from a decompressor.
Returns
Return TRUE on success, FALSE on error.
See also
CompressFile, GetRecommendedBufferSizes, CLZOCompressionFile

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.

Parameters
src_file File name of source file. dst_file File name of result file. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a decompressor. decompression_in_bufsize Size of the internal buffer holding input data to be decompressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. decompression_out_bufsize Size of the internal buffer to receive data from a decompressor.
Returns
Return TRUE on success, FALSE on error.
See also
CompressFile, DecompressFileIntoDir, GetRecommendedBufferSizes, CZipCompressionFile
Note
CompressFile() method, as well as some gzip utilities, always keeps the original file name and timestamp in the compressed file. If fRestoreFileAttr flag is set, that timestamp, stored in the file header will be restored. The original file name cannot be restored here, see DecompressFileIntoDir().

Implements ICompression.

◆ DecompressFile() [5/5]

Decompress file.

Parameters
src_file File name of source file. dst_file File name of result file. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a decompressor. decompression_in_bufsize Size of the internal buffer holding input data to be decompressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. decompression_out_bufsize Size of the internal buffer to receive data from a decompressor.
Returns
Return TRUE on success, FALSE on error.
See also
CompressFile, DecompressFileIntoDir, GetRecommendedBufferSizes, CZipCloudflareCompressionFile
Note
CompressFile() method, as well as some gzip utilities, always keeps the original file name and timestamp in the compressed file. If fRestoreFileAttr flag is set, that timestamp, stored in the file header will be restored. The original file name cannot be restored here, see DecompressFileIntoDir().

Implements ICompression.

◆ DecompressFileIntoDir() [1/2]

Decompress file into specified directory.

Parameters
src_file File name of source file. dst_dir Destination directory. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a decompressor. decompression_in_bufsize Size of the internal buffer holding input data to be decompressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. decompression_out_bufsize Size of the internal buffer to receive data from a decompressor.
Returns
Return TRUE on success, FALSE on error.
See also
CompressFile, DecompressFile, GetRecommendedBufferSizes, CZipCompressionFile
Note
CompressFile() method, as well as some gzip utilities, always keeps the original file name and timestamp in the compressed file. If fRestoreFileAttr flag is set, that original file name and timestamp, stored in the file header will be restored. If not, that destination file will be named as archive name without extension.
◆ DecompressFileIntoDir() [2/2]

Decompress file into specified directory.

Parameters
src_file File name of source file. dst_dir Destination directory. file_io_bufsize Size of the buffer used to read from a source file. Writing happens immediately on receiving some data from a decompressor. decompression_in_bufsize Size of the internal buffer holding input data to be decompressed. It can be different from 'file_io_bufsize' depending on a using compression method, OS and file system. decompression_out_bufsize Size of the internal buffer to receive data from a decompressor.
Returns
Return TRUE on success, FALSE on error.
See also
CompressFile, DecompressFile, GetRecommendedBufferSizes, CZipCloudflareCompressionFile
Note
CompressFile() method, as well as some gzip utilities, always keeps the original file name and timestamp in the compressed file. If fRestoreFileAttr flag is set, that original file name and timestamp, stored in the file header will be restored. If not, that destination file will be named as archive name without extension.
◆ End() [1/9] virtual EStatus CBZip2Compressor::End ( int  abandon = 0 ) protectedvirtual

Free all dynamically allocated data structures.

This function discards any unprocessed input and does not flush any pending output.

Parameters
abandon If this parameter is not zero that skip all error checks, always return eStatus_Success. Use it if Process/Flush/Finish where not called to perform any compression/decompression after Init().

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.

Parameters
abandon If this parameter is not zero that skip all error checks, always return eStatus_Success. Use it if Process/Flush/Finish where not called to perform any compression/decompression after Init().

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.

Parameters
abandon If this parameter is not zero that skip all error checks, always return eStatus_Success. Use it if Process/Flush/Finish where not called to perform any compression/decompression after Init().

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.

Parameters
abandon If this parameter is not zero that skip all error checks, always return eStatus_Success. Use it if Process/Flush/Finish where not called to perform any compression/decompression after Init().

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.

Parameters
abandon If this parameter is not zero that skip all error checks, always return eStatus_Success. Use it if Process/Flush/Finish where not called to perform any compression/decompression after Init().

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.

Parameters
abandon If this parameter is not zero that skip all error checks, always return eStatus_Success. Use it if Process/Flush/Finish where not called to perform any compression/decompression after Init().

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.

Returns
An upper estimate of archive size given that all specified files were stored in it (the actual size may turn out to be smaller).

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 ) virtual

Estimate 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'.

Parameters
src_len Size of data in source buffer.
Returns
Estimated buffer size. 0 if unable to determine.
Note
This method ignores used dictionary.
See also
CompressBuffer

Implements ICompression.

◆ EstimateCompressionBufferSize() [3/6] virtual size_t CZipCloudflareCompression::EstimateCompressionBufferSize ( size_t  src_len ) virtual

Estimate 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'.

Parameters
src_len Size of data in source buffer.
Returns
Estimated buffer size. 0 if unable to determine.
Note
This method ignores used dictionary.
See also
CompressBuffer

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.

Note
fStreamPipeThrough will be ignored if passed in flags. See test suite (in test/test_tar.cpp) for a usage example.
Returns
IReader interface to read the file contents with; 0 on error.
See also
CTarEntryInfo::GetPosition, Extract, SetMask, SetFlags, GetNextEntryInfo, GetNextEntryData, IReader, CRStream

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().

Returns
A list of entries that have been actually extracted.
See also
SetMask, 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.

Note
Unlike Append(), extracting a matching directory does *not* automatically extract all files within: for them to be extracted, they still must match the mask. So if there is a directory "dir/" stored in the archive, the extract mask can be "dir/*" for the entire subtree to be extracted. Note that "dir/" will only extract the directory itself, and "dir" won't cause that directory to be extracted at all (mismatch due to the trailing slash '/' missing).
Returns
A list of entries that have been actually extracted.
See also
SetMask, SetBaseDir, SetFlags

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.

Parameters
info Entry to extract. callback User callback for processing extracted data on the fly.
See also
ExtractEntryToFileSystem, ExtractEntryToMemory, CArchiveEntryInfo::GetSize

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.

Parameters
info Entry to extract. dst_path Destination path for extracted entry.
Note
This method do not set last accessed and modified times. See CArchive.
See also
ExtractEntryToMemory, ExtractEntryToCallback, CArchiveEntryInfo::GetSize

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.

Parameters
info Entry to extract. buf Memory buffer for extracted data. size Size of memory buffer. Note, that the buffer size should be big enough to fit whole extracted file.
See also
ExtractEntryToFileSystem, ExtractEntryToCallback, CArchiveEntryInfo::GetSize

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.

Parameters
info [in] Entry to extract. callback [in] User callback for processing extracted data on the fly.
See also
ExtractFileToMemory, EctractFileToHeap, CArchiveEntryInfo::GetSize, List

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.

Parameters
info [in] Entry to extract. buf_ptr [out] Pointer to an allocated memory buffer. buf_size_ptr [out] Size of allocated memory buffer, it is equal to the size of extracted data.
Note
Do not forget to deallocate memory buffer after usage. Use free() or AutoPtr<char, CDeleter<char>>.
See also
ExtractFileToMemory, EctractFileToCallback, CArchiveEntryInfo::GetSize, List

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 CArchiveEntryInfoinfo, void *  buf, size_t  buf_size, size_t *  out_size  ) virtual

Extract single file entry to a memory buffer.

Parameters
info [in] Entry to extract. buf [in] Memory buffer for extracted data. buf_size [in] Size of memory buffer. out_size [out] Size of extracted data in the buffer.
Note
The buffer size should be big enough to fit whole extracted file.
See also
ExtractFileToHeap, EctractFileToCallback, CArchiveEntryInfo::GetSize, List

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  ) virtual

Finalize 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).

Parameters
buf_ptr Pointer to an archive located in memory. buf_size_ptr Size of the newly created archive.
Note
Do not forget to deallocate memory buffer after usage. Use free() or AutoPtr<char, CDeleter<char>>.
See also
Create, Close

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  ) virtual

Finalize the archive created in memory.

Return pointer to buffer with created archive and its size. The only valid operation after this call is Close().

Parameters
buf Pointer to an archive located in memory. size Size of the newly created archive.
Note
Do not forget to deallocate memory buffer after usage.
See also
CreateMemory, 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 virtual

Finalize the archive created in memory.

Return pointer to buffer with created archive and its size. The only valid operation after this call is Close().

Parameters
buf Pointer to an archive located in memory. size Size of the newly created archive.
Note
Do not forget to deallocate memory buffer after usage.
See also
CreateMemory, Close

Implemented in CArchiveZip.

◆ Finish() [1/9] virtual EStatus CBZip2Compressor::Finish ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ Finish() [2/9] virtual EStatus CBZip2Decompressor::Finish ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ 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  ) protectedvirtual

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.

◆ Finish() [6/9] virtual EStatus CZipDecompressor::Finish ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ Finish() [7/9] virtual EStatus CZipCloudflareCompressor::Finish ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ Finish() [8/9] virtual EStatus CZipCloudflareDecompressor::Finish ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ Finish() [9/9] virtual EStatus CCompressionProcessor::Finish ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedpure virtual

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().

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  ) protectedvirtual

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.

◆ Flush() [2/9] virtual EStatus CBZip2Decompressor::Flush ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ 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  ) protectedvirtual

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.

◆ Flush() [6/9] virtual EStatus CZipDecompressor::Flush ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ Flush() [7/9] virtual EStatus CZipCloudflareCompressor::Flush ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ Flush() [8/9] virtual EStatus CZipCloudflareDecompressor::Flush ( char *  out_buf, size_t  out_size, size_t *  out_avail  ) protectedvirtual

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.

◆ 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.

Parameters
is Opened input stream to scan (should be opened in binary mode). handler Call handler's IChunkHandler::OnChunk() method and pass position of each new gzip file inside a stream and size of uncompressed data on that moment.
Note
This method don't support concatenated .gz files compressed with a dictionary.
◆ g_GZip_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.

Parameters
is Opened input stream to scan (should be opened in binary mode). handler Call handler's IChunkHandler::OnChunk() method and pass position of each new gzip file inside a stream and size of uncompressed data on that moment.
Note
This method don't support concatenated .gz files compressed with a dictionary.

Referenced by CLDS2_UrlHandler_GZipFile::SaveChunks().

◆ GetBaseDir() [1/2] virtual const string& CArchive::GetBaseDir ( void  ) const inlinevirtual

Get base directory to use for files while extracting from/adding to the archive, and in the latter case used only for relative paths.

See also
SetBaseDir

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.

See also
SetBaseDir

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  ) static

LZO 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  ) static

This 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 ) protected

Get 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.

Parameters
index Zero-based index of entry in the archive. info Pointer to entry information structure that will be filled with information about entry with specified index.
Note
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.
See also
CArchiveEntryInfo

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.

Parameters
index Zero-based index of entry in the archive. info Pointer to entry information structure that will be filled with information about entry with specified index.
Note
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.
See also
CArchiveEntryInfo

Implemented in CArchiveZip.

◆ GetErrCodeString() [1/3] virtual const char* CArchiveException::GetErrCodeString ( void  ) const inlineoverridevirtual

Translate 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 inlineoverridevirtual

Translate 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 virtual

Implemented 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 virtual

Implemented 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 virtual

Get compression level.

Note
bzip2 doesn't support zero level compression, so eLevel_NoCompression will be translated to eLevel_Lowest.

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.

Returns
Pointer to IReader, or 0 if the current entry is not a file.
See also
GetNextEntryData, IReader, CRStream

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.

Returns
Pointer to next entry info in the archive or 0 if EOF encountered.
See also
CTarEntryInfo, GetNextEntryData

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 virtual

Returns 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.

Parameters
round_up If specified, round up a returned value by specified amount. Useful for better memory management. For example you can round up to virtual memory page size.
Returns
Structure with recommended buffer sizes.
Note
Applicable for streaming/file operations.
See also
kCompressionDefaultBufSize, CSystemInfo::GetVirtualMemoryPageSize()
◆ GetRecommendedBufferSizes() [2/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.

Parameters
round_up_by If specified, round up a returned value by specified amount. Useful for better memory management. For example you can round up to virtual memory page size.
Returns
Structure with recommended buffer sizes.
Note
Applicable for streaming/file operations.
See also
kCompressionDefaultBufSize, CSystemInfo::GetVirtualMemoryPageSize()

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.

Parameters
round_up_by If specified, round up a returned value by specified amount. Useful for better memory management. For example you can round up to virtual memory page size.
Returns
Structure with recommended buffer sizes.
Note
Applicable for streaming/file operations.
See also
kCompressionDefaultBufSize, CSystemInfo::GetVirtualMemoryPageSize()
◆ GetRecommendedBufferSizes() [4/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.

Parameters
round_up_by If specified, round up a returned value by specified amount. Useful for better memory management. For example you can round up to virtual memory page size.
Returns
Structure with recommended buffer sizes.
Note
Applicable for streaming/file operations.
See also
kCompressionDefaultBufSize, CSystemInfo::GetVirtualMemoryPageSize()
◆ GetSize() [1/3] size_t CCompressionDictionary::GetSize ( void  ) inline ◆ GetSize() [2/3] Uint8 CArchiveEntryInfo::GetSize ( void  ) const inline ◆ GetSize() [3/3] Uint8 CTarEntryInfo::GetSize ( void  ) const inline ◆ GetSmallDecompress() bool CBZip2Compression::GetSmallDecompress ( void  ) const inline ◆ GetSmallDecompressDefault() static bool CBZip2Compression::GetSmallDecompressDefault ( void  ) static ◆ GetStrategy() [1/2] int CZipCompression::GetStrategy ( void  ) const inline ◆ GetStrategy() [2/2] int CZipCloudflareCompression::GetStrategy ( void  ) const inline ◆ GetStrategyDefault() [1/2] ◆ GetStrategyDefault() [2/2] ◆ GetStrategyMax() [1/2] static int CZipCompression::GetStrategyMax ( void  ) static ◆ GetStrategyMax() [2/2] static int CZipCloudflareCompression::GetStrategyMax ( void  ) static ◆ GetStrategyMin() [1/2] static int CZipCompression::GetStrategyMin ( void  ) static ◆ GetStrategyMin() [2/2] static int CZipCloudflareCompression::GetStrategyMin ( void  ) static ◆ GetStreamError() [1/3] void CLZOCompressionFile::GetStreamError ( void  ) protected ◆ GetStreamError() [2/3] void CZipCompressionFile::GetStreamError ( void  ) protected

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  ) protected

Get 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 virtual

Return 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 virtual

Return name and version of the compression library.

Implements CCompression.

◆ GetVersion() [4/6] virtual CVersionInfo CZipCloudflareCompression::GetVersion ( void  ) const virtual

Return 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 virtual

Implemented in CArchiveZip.

◆ HaveSupport_FileStream() [1/2] virtual bool CArchiveZip::HaveSupport_FileStream ( void  ) inlinevirtual ◆ HaveSupport_FileStream() [2/2] virtual bool IArchive::HaveSupport_FileStream ( void  ) pure virtual

Implemented 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  ) protectedvirtual

Initialize 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  ) protectedvirtual

Initialize 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  ) protectedvirtual

Initialize 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  ) protectedvirtual

Initialize 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  ) protectedvirtual

Initialize 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  ) protectedvirtual

Initialize 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  ) inlinestatic

Initialize 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  ) static

Initialize 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  ) inlinestatic

Initialize 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.

Parameters
filename Path to the existing archive.
Note
If you have opened or created archive, it will be automatically closed.
See also
Open, Save

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.

Parameters
raw_pos Position of the chunk in the "raw" (undecoded) stream. data_pos Position of the chunk in the decoded stream data.
Returns
Return a command for the scanning algorithm to continue or stop scanning.

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.

Parameters
file_name File name of the file to open. mode File open mode. info Pointer to file information structure. If not NULL, that it will be used to get information about compressed file in the read mode, and set it in the write mode for compressed files. compression_in_bufsize Size of the internal buffer holding input data to be (de)compressed. compression_out_bufsize Size of the internal buffer to receive data from a (de)compressor.
Returns
TRUE if file was opened successfully or FALSE otherwise.
See also
CLZOCompression, Read, Write, Close

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.

Parameters
file_name File name of the file to open. mode File open mode. info Pointer to file information structure. If it is not NULL, that it will be used to get information about compressed file in the read mode, and set it in the write mode for gzip files. compression_in_bufsize Size of the internal buffer holding input data to be (de)compressed. compression_out_bufsize Size of the internal buffer to receive data from a (de)compressor.
Returns
TRUE if file was opened successfully or FALSE otherwise.
See also
CZipCompression, Read, Write, Close
◆ Open() [3/12]

Opens a compressed file for reading or writing.

Do the same as standard Open(), but can also get/set file info.

Parameters
file_name File name of the file to open. mode File open mode. info Pointer to file information structure. If it is not NULL, that it will be used to get information about compressed file in the read mode, and set it in the write mode for gzip files. compression_in_bufsize Size of the internal buffer holding input data to be (de)compressed. compression_out_bufsize Size of the internal buffer to receive data from a (de)compressor.
Returns
TRUE if file was opened successfully or FALSE otherwise.
See also
CZipCloudflareCompression, Read, Write, Close
◆ Open() [4/12]

Opens a compressed file for reading or writing.

Parameters
file_name File name of the file to open. mode File open mode.
Returns
TRUE if file was opened successfully or FALSE otherwise.
See also
CBZip2Compression, Read, Write, Close
Note
All advanced compression parameters or a dictionary should be set before Open() method, otherwise they will not have any effect.
Current implementation uses default bzip2 methods to work with compression files, so in/out buffer sizes are not used, and added for API uniformity only.

Implements CCompressionFile.

◆ Open() [5/12]

Opens a compressed file for reading or writing.

Parameters
file_name File name of the file to open. mode File open mode. compression_in_bufsize Size of the internal buffer holding input data to be (de)compressed. compression_out_bufsize Size of the internal buffer to receive data from a (de)compressor.
Returns
TRUE if file was opened successfully or FALSE otherwise.
See also
CLZOCompression, Read, Write, Close
Note
All advanced compression parameters or a dictionary should be set before Open() method, otherwise they will not have any effect.

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.

Parameters
file_name File name of the file to open. mode File open mode. compression_in_bufsize Size of the internal buffer holding input data to be (de)compressed. compression_out_bufsize Size of the internal buffer to receive data from a (de)compressor.
Returns
TRUE if file was opened successfully or FALSE otherwise.
See also
CZipCompression, Read, Write, Close
Note
All advanced compression parameters or a dictionary should be set before Open() method, otherwise they will not have any effect.

Implements CCompressionFile.

◆ Open() [7/12]

Opens a compressed file for reading or writing.

Parameters
file_name File name of the file to open. mode File open mode. compression_in_bufsize Size of the internal buffer holding input data to be (de)compressed. compression_out_bufsize Size of the internal buffer to receive data from a (de)compressor.
Returns
TRUE if file was opened successfully or FALSE otherwise.
See also
CZipCloudflareCompression, Read, Write, Close
Note
All advanced compression parameters or a dictionary should be set before Open() method, otherwise they will not have any effect.

Implements CCompressionFile.

◆ Open() [8/12] virtual bool CCompressionFile::Open ( const stringpath, 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.

Parameters
filename File name of the existing archive to open.
See also
CreateFile, OpenMemory, ExtractEntryToFileSystem, ExtractEntryToMemory

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 stringfilename ) 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.

Parameters
filestream File stream that can be used for archive operations. archive_size The archive is assumed to be 'archive_size' bytes long. If it is 0, then the entire rest of the file is assumed to contain the archive.
Note
File stream should be opened with necessary flags to allow read/write, depending on performing archive operations.
The file stream will not be closed after closing archive with Close() .
See also
CreateFileStream, CreateFile, OpenFile, AddEntryFromFile, AddEntryFromMemory

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.

Parameters
filestream File stream that can be used for archive operations. archive_size The archive is assumed to be 'archive_size' bytes long. If it is 0, then the entire rest of the file is assumed to contain the archive.
Note
File stream should be opened with necessary flags to allow read/write, depending on performing archive operations.
The file stream will not be closed after closing archive with Close() .
See also
CreateFileStream, CreateFile, OpenFile, AddEntryFromFile, AddEntryFromMemory

Implemented in CArchiveZip.

◆ OpenMemory() [1/2] void CArchiveZip::OpenMemory ( const void *  buf, size_t  size  ) virtual

Open archive located in memory for reading.

Parameters
buf Pointer to an archive located in memory. Used only to open already existed archive for reading. size Size of the archive.
See also
CreateMemory, OpenFile, ExtractEntryToFileSystem, ExtractEntryToMemory

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 ) virtual

Via 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  ) protectedvirtual

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.

◆ 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  ) protectedvirtual

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.

◆ 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  ) protectedvirtual

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.

◆ 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  ) protectedvirtual

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.

◆ 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  ) protectedvirtual

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.

◆ 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  ) protectedvirtual

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.

◆ 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 virtual

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).

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  ) virtual

Read 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).

Note
Apparently, may not return eRW_Success if hasn't been able to read "count" bytes as requested, and "bytes_read" was provided as NULL.
When returning "*bytes_read" as zero for a non-zero "count" requested, the return status should not indicate eRW_Success.
Warning
"*bytes_read" may never be returned greater than "count".
Attention
It is implementation-dependent whether the call blocks until the entire buffer is read or the call returns when at least some data are available. In general, it is advised that this call is made within a loop that checks for EOF condition and proceeds with the reading until the required amount of data has been retrieved.

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  ) virtual

Read data from compressed file.

Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf".

Parameters
buf Buffer for requested data. len Number of bytes to read.
Returns
Number of bytes actually read (0 for end of file, -1 for error). The number of really read bytes can be less than requested.
See also
Open, Write, Close

Implements CCompressionFile.

◆ Read() [4/7] long CLZOCompressionFile::Read ( void *  buf, size_t  len  ) virtual

Read data from compressed file.

Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf".

Parameters
buf Buffer for requested data. len Number of bytes to read.
Returns
Number of bytes actually read (0 for end of file, -1 for error). The number of really read bytes can be less than requested.
See also
Open, Write, Close

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  ) virtual

Read data from compressed file.

Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf".

Parameters
buf Buffer for requested data. len Number of bytes to read.
Returns
Number of bytes actually read (0 for end of file, -1 for error). The number of really read bytes can be less than requested.
See also
Open, Write, Close

Implements CCompressionFile.

◆ Read() [6/7] virtual long CZipCloudflareCompressionFile::Read ( void *  buf, size_t  len  ) virtual

Read data from compressed file.

Read up to "len" uncompressed bytes from the compressed file "file" into the buffer "buf".

Parameters
buf Buffer for requested data. len Number of bytes to read.
Returns
Number of bytes actually read (0 for end of file, -1 for error). The number of really read bytes can be less than requested.
See also
Open, Write, Close

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  ) protected

Reset 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.

Parameters
filename Path to the archive file name. The directory in that archive file will be create should exists. If destination file already exists, it will be overwritten.
Note
Newly created archive should be finalized first.
See also
Create, Finalize, Load

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.

Parameters
dict Dictionary to use. New dictionary will be used for all subsequent compression/decompression buffer and file operations. NULL value invalidates previous dictionary, meaning "return to no-dictionary mode". own If set to eTakeOwnership the dictionary will be owned by CCompression and automatically deleted when necessary.
Returns
Return TRUE on success, FALSE on error. FALSE usually mean that dictionaries are not supported for a current compression.
Note
Each compression algorithm have its own dictionary format and cannot be reused by some other compression algorithm.
Same dictionary should be used to compress and decompress data.
.gz files don't store a dictionary inside, so you will be unable to decompress files created using CompressFile() or streams with an active dictionary using any external utilities like 'gunzip'. But they will be still decompressible with DecompressFile() using the same dictionary.
If decompressed data have concatenated gzip files, and it is allowed to process them all, each gzip file should be compressed with the same dictionary. It is allowed to mix dictionary and non-dictionary compressed gzip files, the dictionary will be applied only when necessary.
See also
CompressBuffer, DecompressBuffer, CompressFile, DecompressFile

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.

Parameters
dict Dictionary to use. New dictionary will be used for all subsequent compression/decompression buffer and file operations. NULL value invalidates previous dictionary, meaning "return to no-dictionary mode". own If set to eTakeOwnership the dictionary will be owned by CCompression and automatically deleted when necessary.
Returns
Return TRUE on success, FALSE on error. FALSE usually mean that dictionaries are not supported for a current compression.
Note
Each compression algorithm have its own dictionary format and cannot be reused by some other compression algorithm.
Same dictionary should be used to compress and decompress data.
.gz files don't store a dictionary inside, so you will be unable to decompress files created using CompressFile() or streams with an active dictionary using any external utilities like 'gunzip'. But they will be still decompressible with DecompressFile() using the same dictionary.
If decompressed data have concatenated gzip files, and it is allowed to process them all, each gzip file should be compressed with the same dictionary. It is allowed to mix dictionary and non-dictionary compressed gzip files, the dictionary will be applied only when necessary.
See also
CompressBuffer, DecompressBuffer, CompressFile, DecompressFile

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 stringdescription  ) 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 virtual

Implemented in CCompression.

◆ SetLevel() [1/2] void CCompression::SetLevel ( ELevel  level ) virtual

Get/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 virtual

Implemented 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.

Note
Unset mask means wildcard processing (all entries match).
Parameters
mask Set of masks (0 to unset the current set without setting a new one). own Whether to take ownership on the mask (delete upon CTar destruction).
See also

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.

Parameters
mask Set of masks (NULL unset the current set without setting a new one). own Whether to take ownership on the mask (delete upon CArchive destruction). type Type of the mask. You can set two types of masks at the same time. The mask with type eFullPathMask applies to whole path name. The mask with type ePatternMask applies to each path component, to all subdirectories or file name, and if one of them matches, the entry will be processed. If masks for both types are set, the entry will be processed if it matches for each of them.
See also
UnsetMask, CMaskFileName, CMaskRegexp
Note
Unset mask means wildcard processing (all entries match).

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 ) inline

Small 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 ) inline

Compression 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 ) inline

Compression 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 ) inline

Window 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.

Note
API support positive values for this parameters only. RAW deflate data is processed by default, for gzip format we have a apecial flags, see description for: fGZip, fCheckFileHeader, fWriteGZipFormat.

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 ) inline

Window 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.

Note
API support positive values for this parameters only. RAW deflate data is processed by default, for gzip format we have a apecial flags, see description for: fGZip, fCheckFileHeader, fWriteGZipFormat.

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 ) inline

Work 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  ) inline

Definition at line 363 of file lzo.hpp.

◆ SFileInfo() [2/3] CZipCompression::SFileInfo::SFileInfo ( void  ) inline

Definition at line 359 of file zlib.hpp.

◆ SFileInfo() [3/3] CZipCloudflareCompression::SFileInfo::SFileInfo ( void  ) inline

Definition 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  ) inline

Definition at line 411 of file archive.hpp.

◆ SMask() [2/2] CTar::SMask::SMask ( void  ) inline

Definition 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.

Parameters

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.

Parameters

Implemented in CArchiveZip.

◆ TestEntry() [3/3] void CArchive::TestEntry ( void  ) protectedvirtual

Definition 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:

Note
Updating stream archive may (and most certainly will) cause zero-filled gaps in the archive (can be read with "ignore zeroes").
Returns
A list of entries that have been updated.
See also
Append, SetBaseDir, SetMask, SetFlags

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  ) virtual

Write data to compressed file.

Writes the given number of uncompressed bytes from the buffer into the compressed file.

Parameters
buf Buffer with written data. len Number of bytes to write.
Returns
Number of bytes actually written or -1 for error.
See also
Open, Read, Close

Implements CCompressionFile.

◆ Write() [2/5] long CLZOCompressionFile::Write ( const void *  buf, size_t  len  ) virtual

Write data to compressed file.

Writes the given number of uncompressed bytes from the buffer into the compressed file.

Parameters
buf Buffer with written data. len Number of bytes to write.
Returns
Number of bytes actually written or -1 for error. Returned value can be less than "len".
See also
Open, Read, Close

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  ) virtual

Write data to compressed file.

Writes the given number of uncompressed bytes from the buffer into the compressed file.

Parameters
buf Buffer with written data. len Number of bytes to write.
Returns
Number of bytes actually written or -1 for error. Returned value can be less than "len".
See also
Open, Read, Close

Implements CCompressionFile.

◆ Write() [4/5] virtual long CZipCloudflareCompressionFile::Write ( const void *  buf, size_t  len  ) virtual

Write data to compressed file.

Writes the given number of uncompressed bytes from the buffer into the compressed file.

Parameters
buf Buffer with written data. len Number of bytes to write.
Returns
Number of bytes actually written or -1 for error. Returned value can be less than "len".
See also
Open, Read, Close

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 ) private

Definition 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 ) private

Definition 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  ) protected

Definition 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 ) protected

Definition 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 ) private

Definition 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 ) private

Definition 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 ) private

Definition 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  ) virtual

Destructor.

◆ ~CBZip2CompressionFile() CBZip2CompressionFile::~CBZip2CompressionFile ( void  )

Destructor.

◆ ~CBZip2Compressor() virtual CBZip2Compressor::~CBZip2Compressor ( void  ) virtual

Destructor.

◆ ~CBZip2Decompressor() virtual CBZip2Decompressor::~CBZip2Decompressor ( void  ) virtual

Destructor.

◆ ~CCompression() CCompression::~CCompression ( void  ) virtual ◆ ~CCompressionDictionary() CCompressionDictionary::~CCompressionDictionary ( void  ) virtual ◆ ~CCompressionFile() CCompressionFile::~CCompressionFile ( void  ) virtual

Definition at line 210 of file compress.cpp.

◆ ~CCompressionProcessor() CCompressionProcessor::~CCompressionProcessor ( void  ) virtual

Definition at line 192 of file compress.cpp.

◆ ~CDynamicCharArray() CDynamicCharArray::~CDynamicCharArray ( void  ) ◆ ~CLZOCompression() CLZOCompression::~CLZOCompression ( void  ) virtual

Destructor.

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  ) virtual

Destructor.

◆ ~CZipCloudflareCompressionFile() CZipCloudflareCompressionFile::~CZipCloudflareCompressionFile ( void  )

Destructor.

◆ ~CZipCloudflareCompressor() virtual CZipCloudflareCompressor::~CZipCloudflareCompressor ( void  ) virtual

Destructor.

◆ ~CZipCloudflareDecompressor() virtual CZipCloudflareDecompressor::~CZipCloudflareDecompressor ( void  ) virtual

Destructor.

◆ ~CZipCompression() virtual CZipCompression::~CZipCompression ( void  ) virtual

Destructor.

◆ ~CZipCompressionFile() CZipCompressionFile::~CZipCompressionFile ( void  )

Destructor.

◆ ~CZipCompressor() virtual CZipCompressor::~CZipCompressor ( void  ) virtual

Destructor.

◆ ~CZipDecompressor() virtual CZipDecompressor::~CZipDecompressor ( void  ) virtual

Destructor.

◆ ~IArchive() virtual IArchive::~IArchive ( void  ) inlinevirtual

Definition 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::comment

Definition 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 private

Buffer(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 private

Buffer to cache small pieces of data.

Definition at line 695 of file zlib.hpp.

◆ m_Cache [3/5] string CZipDecompressor::m_Cache private

Buffer 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 private

CRC32 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 protected

EOF 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 protected

Underlying 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 protected

Flag 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 private

TRUE 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 protected

I/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 private

TRUE 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 private

Is 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 private

Definition 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 private

Definition 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 private

Size 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 private

Number 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 private

Number 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 protected

Compressor 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 protected

Compressor 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_StreamPos

Position 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::mtime

Definition at line 362 of file lzo.hpp.

◆ mtime [2/3] time_t CZipCompression::SFileInfo::mtime

Definition 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] ◆ CTarReader

RetroSearch 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