Beispiel #1
0
        public static byte[] LoadDax(string fileName, int blockId)
        {
            fileName = fileName.ToLower();

            if (!FileCache.TryGetValue(fileName, out var daxFileCache))
            {
                daxFileCache = new DaxFileCache(fileName);
                FileCache.Add(fileName, daxFileCache);
            }

            return(daxFileCache.GetData(blockId));
        }
Beispiel #2
0
        public static byte[] LoadDax(string file_name, int block_id)
        {
            DaxFileCache dfc;

            file_name = file_name.ToLower();

            if (!fileCache.TryGetValue(file_name, out dfc))
            {
                dfc = new DaxFileCache(file_name);
                fileCache.Add(file_name, dfc);
            }

            return dfc.GetData(block_id);
        }
Beispiel #3
0
        public static byte[] LoadDax(string file_name, int block_id)
        {
            DaxFileCache dfc;

            file_name = file_name.ToLower();

            if (!fileCache.TryGetValue(file_name, out dfc))
            {
                dfc = new DaxFileCache(file_name);
                fileCache.Add(file_name, dfc);
            }

            return(dfc.GetData(block_id));
        }