ME3LibWV.PCCPackage.UncompressBlock C# (CSharp) Method

UncompressBlock() private method

private UncompressBlock ( Stream s, uint CompSize, uint UnCompSize ) : byte[]
s Stream
CompSize uint
UnCompSize uint
return byte[]
        private byte[] UncompressBlock(Stream s, uint CompSize, uint UnCompSize)
        {
            byte[] res = new byte[UnCompSize];
            try
            {
                InflaterInputStream zipstream = new InflaterInputStream(s);
                zipstream.Read(res, 0, (int)UnCompSize);
                zipstream.Flush();         
            }
            catch (Exception ex)
            {
                DebugLog.PrintLn("PCCPACKAGE::UNCOMPRESSBLOCK ERROR:\n" + ex.Message);                
            }
            return res;
        }

Same methods

PCCPackage::UncompressBlock ( int ChunkIdx, int BlockIdx ) : byte[]