Yea.Compression.BitArrayCompress.GetUncompressed C# (CSharp) Method

GetUncompressed() private method

private GetUncompressed ( ) : uint[]
return uint[]
        private uint[] GetUncompressed()
        {
            lock (_lock)
            {
                if (_usingIndexes)
                    return UnpackOffsets();

                CheckBitArray();
                var ui = new uint[_uncompressed.Length];
                _uncompressed.CopyTo(ui, 0);

                return ui;
            }
        }

Usage Example

        private void Prelogic(BitArrayCompress op, out uint[] left, out uint[] right)
        {
            CheckBitArray();

            left  = GetUncompressed();
            right = op.GetUncompressed();
            int ic = left.Length;
            int uc = right.Length;

            if (ic > uc)
            {
                var ar = new uint[ic];
                right.CopyTo(ar, 0);
                right = ar;
            }
            else if (ic < uc)
            {
                var ar = new uint[uc];
                left.CopyTo(ar, 0);
                left = ar;
            }

            //FixLengths(ints, uncomp);
        }
All Usage Examples Of Yea.Compression.BitArrayCompress::GetUncompressed