Exemple #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);
                }
            }
Exemple #2
0
            public byte[] DecompressSection()
            {
                var compressed = new byte[CompressedSize];

                OpenSection().Read(compressed, 0);

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