Пример #1
0
        public ReedSolomon8(int k, int n, int threadCount, BufferManager bufferManager)
        {
            _fecMath = new Math();
            _k = k;
            _n = n;
            _threadCount = threadCount;
            _bufferManager = bufferManager;

            _encMatrix = _fecMath.CreateEncodeMatrix(k, n);
        }
Пример #2
0
        public ReedSolomon8(int k, int n, int threadCount, BufferManager bufferManager)
        {
            _fecMath       = new Math();
            _k             = k;
            _n             = n;
            _threadCount   = threadCount;
            _bufferManager = bufferManager;

            _encMatrix = _fecMath.CreateEncodeMatrix(k, n);
        }
Пример #3
0
        protected override void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            if (disposing)
            {
                if (_fecMath != null)
                {
                    try
                    {
                        _fecMath.Dispose();
                    }
                    catch (Exception)
                    {
                    }

                    _fecMath = null;
                }
            }
        }
Пример #4
0
        protected override void Dispose(bool disposing)
        {
            if (_disposed) return;
            _disposed = true;

            if (disposing)
            {
                if (_fecMath != null)
                {
                    try
                    {
                        _fecMath.Dispose();
                    }
                    catch (Exception)
                    {

                    }

                    _fecMath = null;
                }
            }
        }