private Config(int goodLength, int maxLazy, int niceLength, int maxChainLength, DeflateFlavor flavor) { GoodLength = goodLength; MaxLazy = maxLazy; NiceLength = niceLength; MaxChainLength = maxChainLength; Flavor = flavor; }
private Config(int goodLength, int maxLazy, int niceLength, int maxChainLength, DeflateFlavor flavor) { this.GoodLength = goodLength; this.MaxLazy = maxLazy; this.NiceLength = niceLength; this.MaxChainLength = maxChainLength; this.Flavor = flavor; }
/// <param name="goodLength"></param><param name="maxLazy"></param> <param name="niceLength"></param><param name="maxChainLength"></param><param name="flavor"></param> private Config(int goodLength, int maxLazy, int niceLength, int maxChainLength, DeflateFlavor flavor) { this.GoodLength = goodLength; this.MaxLazy = maxLazy; this.NiceLength = niceLength; this.MaxChainLength = maxChainLength; this.Flavor = flavor; }
private Class936(int A_0, int A_1, int A_2, int A_3, DeflateFlavor A_4) { this.int_0 = A_0; this.int_2 = A_1; this.int_3 = A_2; this.int_1 = A_3; this.deflateFlavor_0 = A_4; }
private void method_2() { this.int_60 = 2 * this.int_59; for (int i = 0; i < this.int_35; i++) { this.short_5[i] = 0; } this.class936_0 = Class936.smethod_0(this.compressionLevel_0); this.deflateFlavor_0 = this.class936_0.deflateFlavor_0; this.int_56 = 0; this.int_31 = 0; this.int_44 = 0; this.int_52 = 2; this.int_46 = 2; this.int_45 = 0; this.int_39 = 0; }
internal int method_37(CompressionLevel A_0, CompressionStrategy A_1) { int num = 0; if (this.compressionLevel_0 != A_0) { Class936 class2 = Class936.smethod_0(A_0); if ((class2.deflateFlavor_0 != this.class936_0.deflateFlavor_0) && (this.class1068_0.long_0 != 0L)) { num = this.class1068_0.method_14(FlushType.Partial); } this.compressionLevel_0 = A_0; this.class936_0 = class2; this.deflateFlavor_0 = this.class936_0.deflateFlavor_0; } this.compressionStrategy_0 = A_1; return(num); }
private void SetDeflater() { DeflateFlavor flavor = this.config.Flavor; if (flavor != DeflateFlavor.Store) { if (flavor != DeflateFlavor.Fast) { if (flavor == DeflateFlavor.Slow) { this.DeflateFunction = new CompressFunc(this.DeflateSlow); } } else { this.DeflateFunction = new CompressFunc(this.DeflateFast); } } else { this.DeflateFunction = new CompressFunc(this.DeflateNone); } }