private byte[] ReadEntryBytes(ArcView file, QlieEntry entry, IEncryption enc) { var data = file.View.ReadBytes(entry.Offset, entry.Size); if (entry.IsEncrypted) { enc.DecryptEntry(data, 0, data.Length, entry); } if (entry.IsPacked) { data = Decompress(data) ?? data; } return(data); }