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; }