Inheritance: Object
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.Caching o;
         o = new UnityEngine.Caching();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Ejemplo n.º 2
0
 static public int constructor(IntPtr l)
 {
     UnityEngine.Caching o;
     o = new UnityEngine.Caching();
     pushObject(l, o);
     return(1);
 }
Ejemplo n.º 3
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Caching o;
         o = new UnityEngine.Caching();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.Caching o;
			o=new UnityEngine.Caching();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Ejemplo n.º 5
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Caching o;
         o = new UnityEngine.Caching();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 6
0
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.Caching o;
         o=new UnityEngine.Caching();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
Ejemplo n.º 7
0
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.Caching o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.Caching();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
Ejemplo n.º 8
0
 public static bool MarkAsUsed(string url, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_MarkAsUsed(url, ref hash));
 }
Ejemplo n.º 9
0
 public static bool IsVersionCached(string url, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_IsVersionCached(url, ref hash));
 }
Ejemplo n.º 10
0
        public static bool MarkAsUsed(string url, int version)
        {
            Hash128 hash = new Hash128(0u, 0u, 0u, (uint)version);

            return(Caching.MarkAsUsed(url, hash));
        }
Ejemplo n.º 11
0
 public static bool Authorize(string name, string domain, int size, int expiration, string signature)
 {
     return(Caching.Authorize(name, domain, (long)size, expiration, signature));
 }
Ejemplo n.º 12
0
        public static bool IsVersionCached(string url, int version)
        {
            Hash128 hash = new Hash128(0u, 0u, 0u, (uint)version);

            return(Caching.IsVersionCached(url, hash));
        }
Ejemplo n.º 13
0
 internal static bool MarkAsUsed(string url, string name, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_MarkAsUsed(url, name, ref hash));
 }
Ejemplo n.º 14
0
 public static void MoveCacheAfter(Cache src, Cache dst)
 {
     Caching.INTERNAL_CALL_MoveCacheAfter(ref src, ref dst);
 }
Ejemplo n.º 15
0
 public static void ResetNoBackupFlag(string url, Hash128 hash)
 {
     Caching.INTERNAL_CALL_ResetNoBackupFlag(url, ref hash);
 }
Ejemplo n.º 16
0
 internal static void SetNoBackupFlag(string url, string name, Hash128 hash, bool enabled)
 {
     Caching.INTERNAL_CALL_SetNoBackupFlag(url, name, ref hash, enabled);
 }
Ejemplo n.º 17
0
 internal static bool MarkAsUsed(string url, string assetBundleName, Hash128 hash)
 {
     return(Caching.MarkAsUsed_Injected(url, assetBundleName, ref hash));
 }
Ejemplo n.º 18
0
 internal static void SetNoBackupFlag(string url, string assetBundleName, Hash128 hash, bool enabled)
 {
     Caching.SetNoBackupFlag_Injected(url, assetBundleName, ref hash, enabled);
 }
Ejemplo n.º 19
0
 internal static bool IsVersionCached(string url, string assetBundleName, Hash128 hash)
 {
     return(Caching.IsVersionCached_Injected(url, assetBundleName, ref hash));
 }
Ejemplo n.º 20
0
 internal static bool ClearCachedVersions(string assetBundleName, Hash128 hash, bool keepInputVersion)
 {
     return(Caching.ClearCachedVersions_Injected(assetBundleName, ref hash, keepInputVersion));
 }
Ejemplo n.º 21
0
 internal static bool ClearCachedVersionInternal(string assetBundleName, Hash128 hash)
 {
     return(Caching.ClearCachedVersionInternal_Injected(assetBundleName, ref hash));
 }
Ejemplo n.º 22
0
 public static bool ClearCache(int expiration)
 {
     return(Caching.ClearCache_Int(expiration));
 }
Ejemplo n.º 23
0
 public static bool RemoveCache(Cache cache)
 {
     return(Caching.INTERNAL_CALL_RemoveCache(ref cache));
 }
Ejemplo n.º 24
0
 public static bool Authorize(string name, string domain, long size, string signature)
 {
     return(Caching.Authorize(name, domain, size, -1, signature));
 }
Ejemplo n.º 25
0
 internal static bool IsVersionCached(string url, string name, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_IsVersionCached(url, name, ref hash));
 }
Ejemplo n.º 26
0
 public static void MoveCacheAfter(Cache src, Cache dst)
 {
     Caching.MoveCacheAfter_Injected(ref src, ref dst);
 }
Ejemplo n.º 27
0
 public static bool CleanCache()
 {
     return(Caching.ClearCache());
 }
Ejemplo n.º 28
0
 public static bool RemoveCache(Cache cache)
 {
     return(Caching.RemoveCache_Injected(ref cache));
 }
Ejemplo n.º 29
0
 public static void MoveCacheBefore(Cache src, Cache dst)
 {
     Caching.INTERNAL_CALL_MoveCacheBefore(ref src, ref dst);
 }
Ejemplo n.º 30
0
 public static void MoveCacheBefore(Cache src, Cache dst)
 {
     Caching.MoveCacheBefore_Injected(ref src, ref dst);
 }
Ejemplo n.º 31
0
 public static bool ClearOtherCachedVersions(string assetBundleName, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_ClearOtherCachedVersions(assetBundleName, ref hash));
 }