~ubuntu-branches/ubuntu/precise/p7zip/precise-updates

« back to all changes in this revision

Viewing changes to CPP/7zip/Archive/Cab/CabIn.h

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2009-02-14 20:12:27 UTC
  • mfrom: (1.1.11 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090214201227-go63qxm9ozfdma60
Tags: 4.65~dfsg.1-1
* New upstream release.
* Remove wx2.8 Build-Depends added by mistakes (7zG is not yet
  intended to be built).
* Use dh_clean without -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
struct CArchiveInfo
33
33
{
34
 
  Byte  VersionMinor; /* cabinet file format version, minor */
35
 
  Byte  VersionMajor; /* cabinet file format version, major */
36
 
  UInt16  NumFolders; /* number of CFFOLDER entries in this cabinet */
37
 
  UInt16  NumFiles;   /* number of CFFILE entries in this cabinet */
38
 
  UInt16  Flags;      /* cabinet file option indicators */
39
 
  UInt16  SetID;      /* must be the same for all cabinets in a set */
40
 
  UInt16  CabinetNumber; /* number of this cabinet file in a set */
 
34
  Byte VersionMinor; /* cabinet file format version, minor */
 
35
  Byte VersionMajor; /* cabinet file format version, major */
 
36
  UInt16 NumFolders; /* number of CFFOLDER entries in this cabinet */
 
37
  UInt16 NumFiles;   /* number of CFFILE entries in this cabinet */
 
38
  UInt16 Flags;      /* cabinet file option indicators */
 
39
  UInt16 SetID;      /* must be the same for all cabinets in a set */
 
40
  UInt16 CabinetNumber; /* number of this cabinet file in a set */
41
41
 
42
42
  bool ReserveBlockPresent() const { return (Flags & NHeader::NArchive::NFlags::kReservePresent) != 0; }
43
43
 
93
93
        return true;
94
94
    return false;
95
95
  }
96
 
  int GetNumberOfNewFolders() const 
 
96
  int GetNumberOfNewFolders() const
97
97
  {
98
98
    int res = Folders.Size();
99
99
    if (IsTherePrevFolder())
124
124
  CRecordVector<CMvItem> Items;
125
125
  CRecordVector<int> StartFolderOfVol;
126
126
  CRecordVector<int> FolderStartFileIndex;
127
 
  int GetFolderIndex(const CMvItem *mvi) const 
 
127
  int GetFolderIndex(const CMvItem *mvi) const
128
128
  {
129
129
    const CDatabaseEx &db = Volumes[mvi->VolumeIndex];
130
 
    return StartFolderOfVol[mvi->VolumeIndex] + 
 
130
    return StartFolderOfVol[mvi->VolumeIndex] +
131
131
        db.Items[mvi->ItemIndex].GetFolderIndex(db.Folders.Size());
132
132
  }
133
133
  void Clear()
152
152
  void Skeep(size_t size);
153
153
  void ReadOtherArchive(COtherArchive &oa);
154
154
 
155
 
  HRESULT Open2(IInStream *inStream, 
 
155
  HRESULT Open2(IInStream *inStream,
156
156
      const UInt64 *searchHeaderSizeLimit,
157
157
      CDatabase &database);
158
158
public: