예제 #1
0
 public bool CreateIfPossible(FPCKey key, string fullFilePath)
 {
     if (!Map[CACHE_FIRSTPASS].ContainsKey(key))
     {
         return(false);
     }
     byte[] arr = Get <byte[]>(CACHE_FIRSTPASS, key);
     WriteFile(arr, fullFilePath);
     return(true);
 }
예제 #2
0
 public void Save(FPCKey key, string fullFilePath)
 {
     Map[CACHE_FIRSTPASS][key] = File.ReadAllBytes(fullFilePath);
 }