예제 #1
0
            public byte[] DecompressSection()
            {
                byte[] compressed = new byte[CompressedSize];
                OpenSection().Read(0, compressed).ThrowIfFailure();

                if (IsCompressed)
                {
                    return(Lz4.Decompress(compressed, (int)DecompressedSize));
                }
                else
                {
                    return(compressed);
                }
            }
예제 #2
0
파일: Nso.cs 프로젝트: gabest11/nsZip
            public byte[] DecompressSection()
            {
                var compressed = new byte[CompressedSize];

                OpenSection().Read(compressed, 0);

                if (IsCompressed)
                {
                    return(Lz4.Decompress(compressed, (int)DecompressedSize));
                }
                else
                {
                    return(compressed);
                }
            }