Пример #1
0
 public CabPacker(CabEngine cabEngine)
     : base(cabEngine)
 {
     this.fciAllocMemHandler    = this.CabAllocMem;
     this.fciFreeMemHandler     = this.CabFreeMem;
     this.fciOpenStreamHandler  = this.CabOpenStreamEx;
     this.fciReadStreamHandler  = this.CabReadStreamEx;
     this.fciWriteStreamHandler = this.CabWriteStreamEx;
     this.fciCloseStreamHandler = this.CabCloseStreamEx;
     this.fciSeekStreamHandler  = this.CabSeekStreamEx;
     this.fciFilePlacedHandler  = this.CabFilePlaced;
     this.fciDeleteFileHandler  = this.CabDeleteFile;
     this.fciGetTempFileHandler = this.CabGetTempFile;
     this.fciGetNextCabinet     = this.CabGetNextCabinet;
     this.fciCreateStatus       = this.CabCreateStatus;
     this.fciGetOpenInfo        = this.CabGetOpenInfo;
     this.tempStreams = new List<Stream>();
     this.compressionLevel = CompressionLevel.Normal;
 }
Пример #2
0
 public CabPacker(CabEngine cabEngine)
     : base(cabEngine)
 {
     this.fciAllocMemHandler    = this.CabAllocMem;
     this.fciFreeMemHandler     = this.CabFreeMem;
     this.fciOpenStreamHandler  = this.CabOpenStreamEx;
     this.fciReadStreamHandler  = this.CabReadStreamEx;
     this.fciWriteStreamHandler = this.CabWriteStreamEx;
     this.fciCloseStreamHandler = this.CabCloseStreamEx;
     this.fciSeekStreamHandler  = this.CabSeekStreamEx;
     this.fciFilePlacedHandler  = this.CabFilePlaced;
     this.fciDeleteFileHandler  = this.CabDeleteFile;
     this.fciGetTempFileHandler = this.CabGetTempFile;
     this.fciGetNextCabinet     = this.CabGetNextCabinet;
     this.fciCreateStatus       = this.CabCreateStatus;
     this.fciGetOpenInfo        = this.CabGetOpenInfo;
     this.tempStreams           = new List <Stream>();
     this.compressionLevel      = CompressionLevel.Normal;
 }