private void StoreData(FileEntry entry, byte[] data) { entry.SetCustomData(data); }
private byte[] LoadData(FileEntry entry, bool getCustom) { byte[] data; if (getCustom && entry.CustomData != null) data = entry.CustomData; else data = _rpfFile.ReadData(entry.Offset, entry.SizeInArchive); if (entry.IsCompressed && !entry.IsResourceFile) { data = DataUtil.DecompressDeflate(data, (int)entry.Size); } return data; }