Exemplo n.º 1
0
        public AsyncEncoder(EncoderSettings settings)
        {
            if (settings == null)
                throw new ArgumentNullException(nameof(settings));

            mSyncObject = new object();

            mEncoder = new LZMA.Master.LZMA.CLzma2Enc(LZMA.Master.LZMA.ISzAlloc.SmallAlloc, LZMA.Master.LZMA.ISzAlloc.BigAlloc);
            mEncoder.Lzma2Enc_SetProps(settings.GetInternalSettings());
        }
Exemplo n.º 2
0
        public AsyncEncoder(EncoderSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            mSyncObject = new object();

            mEncoder = new LZMA.Master.LZMA.CLzma2Enc(LZMA.Master.LZMA.ISzAlloc.SmallAlloc, LZMA.Master.LZMA.ISzAlloc.BigAlloc);
            mEncoder.Lzma2Enc_SetProps(settings.GetInternalSettings());
        }