using System; using Il2CppInterop.Common.Attributes; using Il2CppInterop.Runtime; using Il2CppInterop.Runtime.InteropTypes; using Il2CppInterop.Runtime.InteropTypes.Arrays; namespace MarsSDK { // Token: 0x02000609 RID: 1545 public class IFileSystem : Il2CppObjectBase { // Token: 0x06009F91 RID: 40849 RVA: 0x0028D4B8 File Offset: 0x0028B6B8 [CallerCount(0)] public unsafe virtual bool HasFile(int fileGroup, string dataName) { IL2CPP.Il2CppObjectBaseToPtrNotNull(this); IntPtr* ptr; checked { ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)]; *ptr = ref fileGroup; } ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(dataName); IntPtr intPtr2; IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), IFileSystem.NativeMethodInfoPtr_HasFile_Public_Abstract_Virtual_New_Boolean_Int32_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2); Il2CppException.RaiseExceptionIfNecessary(intPtr2); return *IL2CPP.il2cpp_object_unbox(intPtr); } // Token: 0x06009F92 RID: 40850 RVA: 0x0028D540 File Offset: 0x0028B740 [CallerCount(0)] public unsafe virtual WriteFileResult WriteFile(int fileGroup, string dataName, Il2CppStructArray data) { IL2CPP.Il2CppObjectBaseToPtrNotNull(this); IntPtr* ptr; checked { ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)]; *ptr = ref fileGroup; } ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(dataName); ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(data); IntPtr intPtr2; IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), IFileSystem.NativeMethodInfoPtr_WriteFile_Public_Abstract_Virtual_New_WriteFileResult_Int32_String_Il2CppStructArray_1_Byte_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2); Il2CppException.RaiseExceptionIfNecessary(intPtr2); return *IL2CPP.il2cpp_object_unbox(intPtr); } // Token: 0x06009F93 RID: 40851 RVA: 0x0028D5E0 File Offset: 0x0028B7E0 [CallerCount(0)] public unsafe virtual ReadFileResult ReadFile(int fileGroup, string dataName, out Il2CppStructArray data) { IL2CPP.Il2CppObjectBaseToPtrNotNull(this); IntPtr* ptr; checked { ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)]; *ptr = ref fileGroup; } ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(dataName); ref IntPtr ptr2 = ref ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)]; IntPtr intPtr = 0; ptr2 = &intPtr; IntPtr intPtr3; IntPtr intPtr2 = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), IFileSystem.NativeMethodInfoPtr_ReadFile_Public_Abstract_Virtual_New_ReadFileResult_Int32_String_byref_Il2CppStructArray_1_Byte_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr3); Il2CppException.RaiseExceptionIfNecessary(intPtr3); IntPtr intPtr4 = intPtr; data = ((intPtr4 == 0) ? null : new Il2CppStructArray(intPtr4)); return *IL2CPP.il2cpp_object_unbox(intPtr2); } // Token: 0x06009F94 RID: 40852 RVA: 0x0028D694 File Offset: 0x0028B894 [CallerCount(0)] public unsafe virtual void DeleteFile(int fileGroup, string dataName) { IL2CPP.Il2CppObjectBaseToPtrNotNull(this); IntPtr* ptr; checked { ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)]; *ptr = ref fileGroup; } ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(dataName); IntPtr intPtr2; IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), IFileSystem.NativeMethodInfoPtr_DeleteFile_Public_Abstract_Virtual_New_Void_Int32_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2); Il2CppException.RaiseExceptionIfNecessary(intPtr2); } // Token: 0x06009F95 RID: 40853 RVA: 0x0028D70C File Offset: 0x0028B90C // Note: this type is marked as 'beforefieldinit'. static IFileSystem() { Il2CppClassPointerStore.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "MarsSDK", "IFileSystem"); IFileSystem.NativeMethodInfoPtr_HasFile_Public_Abstract_Virtual_New_Boolean_Int32_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675561); IFileSystem.NativeMethodInfoPtr_WriteFile_Public_Abstract_Virtual_New_WriteFileResult_Int32_String_Il2CppStructArray_1_Byte_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675562); IFileSystem.NativeMethodInfoPtr_ReadFile_Public_Abstract_Virtual_New_ReadFileResult_Int32_String_byref_Il2CppStructArray_1_Byte_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675563); IFileSystem.NativeMethodInfoPtr_DeleteFile_Public_Abstract_Virtual_New_Void_Int32_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675564); } // Token: 0x06009F96 RID: 40854 RVA: 0x000EE522 File Offset: 0x000EC722 public IFileSystem(IntPtr pointer) : base(pointer) { } // Token: 0x04006AD9 RID: 27353 private static readonly IntPtr NativeMethodInfoPtr_HasFile_Public_Abstract_Virtual_New_Boolean_Int32_String_0; // Token: 0x04006ADA RID: 27354 private static readonly IntPtr NativeMethodInfoPtr_WriteFile_Public_Abstract_Virtual_New_WriteFileResult_Int32_String_Il2CppStructArray_1_Byte_0; // Token: 0x04006ADB RID: 27355 private static readonly IntPtr NativeMethodInfoPtr_ReadFile_Public_Abstract_Virtual_New_ReadFileResult_Int32_String_byref_Il2CppStructArray_1_Byte_0; // Token: 0x04006ADC RID: 27356 private static readonly IntPtr NativeMethodInfoPtr_DeleteFile_Public_Abstract_Virtual_New_Void_Int32_String_0; } }