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]; }
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]; }