Ejemplo n.º 1
0
        public SharedSettings(SharedSettings other)
        {
            this.Variant = other.Variant;
            this.UseV2   = other.UseV2;

            this.Dst         = other.Dst;
            this.Src         = other.Src;
            this.Enc         = other.Enc;
            this.UsedSize    = other.UsedSize;
            this.WrittenSize = other.WrittenSize;

            this.Level        = other.Level;
            this.DictSize     = other.DictSize;
            this.LC           = other.LC;
            this.LP           = other.LP;
            this.PB           = other.PB;
            this.Algo         = other.Algo;
            this.FB           = other.FB;
            this.BTMode       = other.BTMode;
            this.NumHashBytes = other.NumHashBytes;
            this.MC           = other.MC;
            this.WriteEndMark = other.WriteEndMark;
            this.NumThreads   = other.NumThreads;

            this.BlockSize       = other.BlockSize;
            this.NumBlockThreads = other.NumBlockThreads;
            this.NumTotalThreads = other.NumTotalThreads;
        }
Ejemplo n.º 2
0
 private static IHelper CreateHelper(Guid id, bool managed, SharedSettings s)
 {
     if (managed)
     {
         if (s.UseV2)
             return new ManagedCoder2(id);
         else
             return new ManagedCoder(id);
     }
     else
     {
         if (s.UseV2)
             return new NativeCoder2(id);
         else
             return new NativeCoder(id);
     }
 }
Ejemplo n.º 3
0
        public SharedSettings(SharedSettings other)
        {
            this.Variant = other.Variant;
            this.UseV2 = other.UseV2;

            this.Dst = other.Dst;
            this.Src = other.Src;
            this.Enc = other.Enc;
            this.UsedSize = other.UsedSize;
            this.WrittenSize = other.WrittenSize;

            this.Level = other.Level;
            this.DictSize = other.DictSize;
            this.LC = other.LC;
            this.LP = other.LP;
            this.PB = other.PB;
            this.Algo = other.Algo;
            this.FB = other.FB;
            this.BTMode = other.BTMode;
            this.NumHashBytes = other.NumHashBytes;
            this.MC = other.MC;
            this.WriteEndMark = other.WriteEndMark;
            this.NumThreads = other.NumThreads;

            this.BlockSize = other.BlockSize;
            this.NumBlockThreads = other.NumBlockThreads;
            this.NumTotalThreads = other.NumTotalThreads;
        }