コード例 #1
0
 protected CabWorker(CabEngine cabEngine)
 {
     this.cabEngine = cabEngine;
     streamHandles  = new HandleManager <Stream>();
     erf            = new NativeMethods.ERF();
     erfHandle      = GCHandle.Alloc(erf, GCHandleType.Pinned);
     cabNumbers     = new Dictionary <string, short>(1);
     buf            = new byte[32768];
 }
コード例 #2
0
        protected CabWorker(CabEngine cabEngine)
        {
            this.cabEngine     = cabEngine;
            this.streamHandles = new HandleManager <Stream>();
            this.erf           = new NativeMethods.ERF();
            this.erfHandle     = GCHandle.Alloc(this.erf, GCHandleType.Pinned);
            this.cabNumbers    = new Dictionary <string, short>(1);

            // 32K seems to be the size of the largest chunks processed by cabinet.dll.
            // But just in case, this buffer will auto-enlarge.
            this.buf = new byte[32768];
        }
コード例 #3
0
ファイル: CabWorker.cs プロジェクト: zooba/wix3
        protected CabWorker(CabEngine cabEngine)
        {
            this.cabEngine = cabEngine;
            this.streamHandles = new HandleManager<Stream>();
            this.erf = new NativeMethods.ERF();
            this.erfHandle = GCHandle.Alloc(this.erf, GCHandleType.Pinned);
            this.cabNumbers = new Dictionary<string, short>(1);

            // 32K seems to be the size of the largest chunks processed by cabinet.dll.
            // But just in case, this buffer will auto-enlarge.
            this.buf = new byte[32768];
        }