public ES2Reader(ES2Settings settings) { this.settings = settings; this.stream = ES2Stream.Create(settings, ES2Stream.Operation.Read); this.reader = new BinaryReader(stream.stream); cachedFile = ES2Cache.GetCachedFile(settings.filenameData.filePath); }
public void CacheFile() { cachedFile = ES2Cache.AddNewCachedFile(settings.filenameData.filePath); if (Length <= 0) { return; } Reset(); // Reset so that we start from the beginning. while (Next()) { cachedFile.AddTag(currentTag.tag, currentTag.position, currentTag.settingsPosition, currentTag.nextTagPosition); } }
public static ES2CachedFile AddNewCachedFile(string absolutePath) { return(fileCaches[absolutePath] = new ES2CachedFile()); }