예제 #1
0
파일: CKey.cs 프로젝트: overtools/TACTLib
 public EKey AsEKey()
 {
     fixed(byte *ptr = Value)
     {
         return(EKey.FromPointer(ptr));
     }
 }
예제 #2
0
 /// <summary>
 /// Open an encoded file from Encoding Key
 /// </summary>
 /// <param name="key">The Encoding Key</param>
 /// <returns>Loaded file</returns>
 internal Stream OpenEKey(EKey key)
 {
     if (!IndexEntries.TryGetValue(key, out IndexEntry indexEntry))
     {
         Debugger.Log(0, "ContainerHandler", $"Missing local index {key.ToHexString()}\n");
         return(null);
     }
     return(OpenIndexEntry(indexEntry));
 }