Example #1
0
 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);
 }
Example #2
0
    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);
        }
    }
Example #3
0
 public static ES2CachedFile AddNewCachedFile(string absolutePath)
 {
     return(fileCaches[absolutePath] = new ES2CachedFile());
 }