public ShortSectorAllocation(CompoundDocument document)
 {
     this.Document = document;
     ShortSectorAllocationTable = document.GetStreamDataAsIntegers(document.Header.FirstSectorIDofShortSectorAllocationTable);
     //ShortSectorAllocationTable.RemoveRange(document.Header.NumberOfShortSectors, ShortSectorAllocationTable.Count - document.Header.NumberOfShortSectors);
     while (ShortSectorAllocationTable.Count > 0 && ShortSectorAllocationTable[ShortSectorAllocationTable.Count - 1] == SID.Free)
     {
         ShortSectorAllocationTable.RemoveAt(ShortSectorAllocationTable.Count - 1);
     }
 }
Example #2
0
 public ShortSectorAllocation(CompoundDocument document)
 {
     this.Document = document;
     ShortSectorAllocationTable = document.GetStreamDataAsIntegers(document.Header.FirstSectorIDofShortSectorAllocationTable);
     //ShortSectorAllocationTable.RemoveRange(document.Header.NumberOfShortSectors, ShortSectorAllocationTable.Count - document.Header.NumberOfShortSectors);
     while (ShortSectorAllocationTable.Count > 0 && ShortSectorAllocationTable[ShortSectorAllocationTable.Count - 1] == SID.Free)
     {
         ShortSectorAllocationTable.RemoveAt(ShortSectorAllocationTable.Count - 1);
     }
 }
Example #3
0
 public ShortSectorAllocation(CompoundDocument document)
 {
     this.Document = document;
     this.ShortSectorAllocationTable = document.GetStreamDataAsIntegers(document.Header.FirstSectorIDofShortSectorAllocationTable);
     checked
     {
         while (this.ShortSectorAllocationTable.Count > 0 && this.ShortSectorAllocationTable[this.ShortSectorAllocationTable.Count - 1] == -1)
         {
             this.ShortSectorAllocationTable.RemoveAt(this.ShortSectorAllocationTable.Count - 1);
         }
     }
 }