Exemple #1
0
 private void StoreData(FileEntry entry, byte[] data)
 {
     entry.SetCustomData(data);
 }
Exemple #2
0
 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;
 }