public Stream FileOpen(Idx.Entry entry) { if (entry.IsCompressed) { var fileStream = new SubStream(stream, entry.Offset * IsoBlockAlign, entry.BlockLength * IsoBlockAlign + IsoBlockAlign); return(new MemoryStream(Decompress(fileStream))); } return(new SubStream(stream, entry.Offset * IsoBlockAlign, entry.Length)); }
public static string Lookup(Idx.Entry entry) => _nameDictionary.TryGetValue(IdxDictionary.GetHash(entry), out var name) ? name : null;