#if FUSION2 && XRMOD_INSTALL using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using UnityFusion.CLR.TypeSystem; using UnityFusion.CLR.Method; using UnityFusion.Runtime.Enviorment; using UnityFusion.Runtime.Intepreter; using UnityFusion.Runtime.Stack; using UnityFusion.Reflection; using UnityFusion.CLR.Utils; #if DEBUG && !DISABLE_UNITYFUSION_DEBUG using AutoList = System.Collections.Generic.List; #else using AutoList = UnityFusion.Other.UncheckedList; #endif namespace UnityFusion.Runtime.Generated { unsafe class EPPZ_Persistence_Extensions_String_Extensions_Binding { public static void Register(UnityFusion.Runtime.Enviorment.AppDomain app) { BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; MethodBase method; Type[] args; Type type = typeof(EPPZ.Persistence.Extensions.String_Extensions); args = new Type[]{typeof(System.String), typeof(EPPZ.Persistence.Serializer)}; method = type.GetMethod("WithFileExtension", flag, null, args, null); app.RegisterCLRMethodRedirection(method, WithFileExtension_0); args = new Type[]{typeof(System.String), typeof(EPPZ.Persistence.Serializer)}; method = type.GetMethod("WithExistingFileExtension", flag, null, args, null); app.RegisterCLRMethodRedirection(method, WithExistingFileExtension_1); args = new Type[]{typeof(System.String)}; method = type.GetMethod("Bytes", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Bytes_2); args = new Type[]{typeof(System.String)}; method = type.GetMethod("Base64Bytes", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Base64Bytes_3); args = new Type[]{typeof(System.String)}; method = type.GetMethod("Zip", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Zip_4); args = new Type[]{typeof(System.String)}; method = type.GetMethod("Unzip", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Unzip_5); } static StackObject* WithFileExtension_0(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); EPPZ.Persistence.Serializer @serializer = (EPPZ.Persistence.Serializer)typeof(EPPZ.Persistence.Serializer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.String @this_ = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = EPPZ.Persistence.Extensions.String_Extensions.WithFileExtension(@this_, @serializer); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* WithExistingFileExtension_1(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); EPPZ.Persistence.Serializer @serializer = (EPPZ.Persistence.Serializer)typeof(EPPZ.Persistence.Serializer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.String @this_ = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = EPPZ.Persistence.Extensions.String_Extensions.WithExistingFileExtension(@this_, @serializer); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* Bytes_2(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.String @this_ = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = EPPZ.Persistence.Extensions.String_Extensions.Bytes(@this_); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* Base64Bytes_3(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.String @this_ = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = EPPZ.Persistence.Extensions.String_Extensions.Base64Bytes(@this_); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* Zip_4(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.String @this_ = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = EPPZ.Persistence.Extensions.String_Extensions.Zip(@this_); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* Unzip_5(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.String @this_ = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = EPPZ.Persistence.Extensions.String_Extensions.Unzip(@this_); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } } #endif