コード例 #1
0
 public bool CreateIfPossible(ACKey key, string fullFilePath)
 {
     if (!Map[CACHE_AUDIO].ContainsKey(key))
     {
         return(false);
     }
     byte[] arr = Get <byte[]>(CACHE_AUDIO, key);
     WriteFile(arr, fullFilePath);
     return(true);
 }
コード例 #2
0
 public void Save(ACKey key, string fullFilePath)
 {
     Map[CACHE_AUDIO][key] = File.ReadAllBytes(fullFilePath);
 }