using System; using Il2CppInterop.Common.Attributes; using Il2CppInterop.Runtime; using Il2CppInterop.Runtime.InteropTypes.Arrays; using Il2CppSystem; using Il2CppSystem.Collections.Generic; namespace MarsSDK { // Token: 0x0200060C RID: 1548 public class StandaloneFileSystem : Object { // Token: 0x06009FA0 RID: 40864 RVA: 0x0028D9C8 File Offset: 0x0028BBC8 [CallerCount(3)] [CachedScanResults(RefRangeStart = 640609, RefRangeEnd = 640612, XrefRangeStart = 640585, XrefRangeEnd = 640609, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)] public unsafe StandaloneFileSystem(IReadOnlyList dataPathGroups, string dataExtension = ".dat") : this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore.NativeClassPtr)) { IntPtr* ptr; checked { ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)]; *ptr = IL2CPP.Il2CppObjectBaseToPtr(dataPathGroups); } ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(dataExtension); IntPtr intPtr2; IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(StandaloneFileSystem.NativeMethodInfoPtr__ctor_Public_Void_IReadOnlyList_1_String_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2); Il2CppException.RaiseExceptionIfNecessary(intPtr2); } // Token: 0x06009FA1 RID: 40865 RVA: 0x0028DA44 File Offset: 0x0028BC44 [CallerCount(0)] [CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 640612, XrefRangeEnd = 640614, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)] 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(StandaloneFileSystem.NativeMethodInfoPtr_HasFile_Public_Virtual_Final_New_Boolean_Int32_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2); Il2CppException.RaiseExceptionIfNecessary(intPtr2); return *IL2CPP.il2cpp_object_unbox(intPtr); } // Token: 0x06009FA2 RID: 40866 RVA: 0x0028DAC0 File Offset: 0x0028BCC0 [CallerCount(0)] [CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 640614, XrefRangeEnd = 640622, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)] 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(StandaloneFileSystem.NativeMethodInfoPtr_WriteFile_Public_Virtual_Final_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: 0x06009FA3 RID: 40867 RVA: 0x0028DB54 File Offset: 0x0028BD54 [CallerCount(0)] [CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 640622, XrefRangeEnd = 640625, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)] 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(StandaloneFileSystem.NativeMethodInfoPtr_ReadFile_Public_Virtual_Final_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: 0x06009FA4 RID: 40868 RVA: 0x0028DC00 File Offset: 0x0028BE00 [CallerCount(0)] [CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 640625, XrefRangeEnd = 640635, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)] 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(StandaloneFileSystem.NativeMethodInfoPtr_DeleteFile_Public_Virtual_Final_New_Void_Int32_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2); Il2CppException.RaiseExceptionIfNecessary(intPtr2); } // Token: 0x06009FA5 RID: 40869 RVA: 0x0028DC6C File Offset: 0x0028BE6C [CallerCount(4)] [CachedScanResults(RefRangeStart = 640643, RefRangeEnd = 640647, XrefRangeStart = 640635, XrefRangeEnd = 640643, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)] public unsafe string GetFilePath(int fileGroup, string fileName) { 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(fileName); IntPtr intPtr2; IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(StandaloneFileSystem.NativeMethodInfoPtr_GetFilePath_Private_String_Int32_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2); Il2CppException.RaiseExceptionIfNecessary(intPtr2); return IL2CPP.Il2CppStringToManaged(intPtr); } // Token: 0x06009FA6 RID: 40870 RVA: 0x0028DCE4 File Offset: 0x0028BEE4 // Note: this type is marked as 'beforefieldinit'. static StandaloneFileSystem() { Il2CppClassPointerStore.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "MarsSDK", "StandaloneFileSystem"); IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore.NativeClassPtr); StandaloneFileSystem.NativeFieldInfoPtr_dataExtension = IL2CPP.GetIl2CppField(Il2CppClassPointerStore.NativeClassPtr, "dataExtension"); StandaloneFileSystem.NativeFieldInfoPtr_pathGroups = IL2CPP.GetIl2CppField(Il2CppClassPointerStore.NativeClassPtr, "pathGroups"); StandaloneFileSystem.NativeMethodInfoPtr__ctor_Public_Void_IReadOnlyList_1_String_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675568); StandaloneFileSystem.NativeMethodInfoPtr_HasFile_Public_Virtual_Final_New_Boolean_Int32_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675569); StandaloneFileSystem.NativeMethodInfoPtr_WriteFile_Public_Virtual_Final_New_WriteFileResult_Int32_String_Il2CppStructArray_1_Byte_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675570); StandaloneFileSystem.NativeMethodInfoPtr_ReadFile_Public_Virtual_Final_New_ReadFileResult_Int32_String_byref_Il2CppStructArray_1_Byte_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675571); StandaloneFileSystem.NativeMethodInfoPtr_DeleteFile_Public_Virtual_Final_New_Void_Int32_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675572); StandaloneFileSystem.NativeMethodInfoPtr_GetFilePath_Private_String_Int32_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore.NativeClassPtr, 100675573); } // Token: 0x06009FA7 RID: 40871 RVA: 0x0000A74C File Offset: 0x0000894C public StandaloneFileSystem(IntPtr pointer) : base(pointer) { } // Token: 0x17003629 RID: 13865 // (get) Token: 0x06009FA8 RID: 40872 RVA: 0x0028DDB4 File Offset: 0x0028BFB4 // (set) Token: 0x06009FA9 RID: 40873 RVA: 0x0028DDDD File Offset: 0x0028BFDD public unsafe string dataExtension { get { IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(StandaloneFileSystem.NativeFieldInfoPtr_dataExtension); return IL2CPP.Il2CppStringToManaged(*intPtr); } set { IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this); IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(StandaloneFileSystem.NativeFieldInfoPtr_dataExtension), IL2CPP.ManagedStringToIl2Cpp(value)); } } // Token: 0x1700362A RID: 13866 // (get) Token: 0x06009FAA RID: 40874 RVA: 0x0028DE04 File Offset: 0x0028C004 // (set) Token: 0x06009FAB RID: 40875 RVA: 0x0028DE38 File Offset: 0x0028C038 public unsafe Il2CppStringArray pathGroups { get { IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(StandaloneFileSystem.NativeFieldInfoPtr_pathGroups); IntPtr intPtr2 = *intPtr; return (intPtr2 != 0) ? new Il2CppStringArray(intPtr2) : null; } set { IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this); IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(StandaloneFileSystem.NativeFieldInfoPtr_pathGroups), IL2CPP.Il2CppObjectBaseToPtr(value)); } } // Token: 0x04006AE5 RID: 27365 private static readonly IntPtr NativeFieldInfoPtr_dataExtension; // Token: 0x04006AE6 RID: 27366 private static readonly IntPtr NativeFieldInfoPtr_pathGroups; // Token: 0x04006AE7 RID: 27367 private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_IReadOnlyList_1_String_String_0; // Token: 0x04006AE8 RID: 27368 private static readonly IntPtr NativeMethodInfoPtr_HasFile_Public_Virtual_Final_New_Boolean_Int32_String_0; // Token: 0x04006AE9 RID: 27369 private static readonly IntPtr NativeMethodInfoPtr_WriteFile_Public_Virtual_Final_New_WriteFileResult_Int32_String_Il2CppStructArray_1_Byte_0; // Token: 0x04006AEA RID: 27370 private static readonly IntPtr NativeMethodInfoPtr_ReadFile_Public_Virtual_Final_New_ReadFileResult_Int32_String_byref_Il2CppStructArray_1_Byte_0; // Token: 0x04006AEB RID: 27371 private static readonly IntPtr NativeMethodInfoPtr_DeleteFile_Public_Virtual_Final_New_Void_Int32_String_0; // Token: 0x04006AEC RID: 27372 private static readonly IntPtr NativeMethodInfoPtr_GetFilePath_Private_String_Int32_String_0; } }