188 lines
9.5 KiB
C#
188 lines
9.5 KiB
C#
using System;
|
|
using Il2CppInterop.Common.Attributes;
|
|
using Il2CppInterop.Runtime;
|
|
using Il2CppInterop.Runtime.InteropTypes.Arrays;
|
|
using Il2CppSystem;
|
|
using Il2CppSystem.Reflection;
|
|
using MarsSDK;
|
|
using Newtonsoft.Json;
|
|
|
|
// Token: 0x02000166 RID: 358
|
|
public class GameDataProvider : Object
|
|
{
|
|
// Token: 0x060044C1 RID: 17601 RVA: 0x0010F5A4 File Offset: 0x0010D7A4
|
|
[CallerCount(6)]
|
|
[CachedScanResults(RefRangeStart = 556392, RefRangeEnd = 556398, XrefRangeStart = 556374, XrefRangeEnd = 556392, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe GameDataProvider()
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr))
|
|
{
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameDataProvider.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x060044C2 RID: 17602 RVA: 0x0010F5F0 File Offset: 0x0010D7F0
|
|
[CallerCount(2)]
|
|
[CachedScanResults(RefRangeStart = 556405, RefRangeEnd = 556407, XrefRangeStart = 556398, XrefRangeEnd = 556405, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe Il2CppStructArray<byte> GetBytes(Object source)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameDataProvider.NativeMethodInfoPtr_GetBytes_Public_Il2CppStructArray_1_Byte_Object_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
IntPtr intPtr3 = intPtr;
|
|
return (intPtr3 != 0) ? new Il2CppStructArray<byte>(intPtr3) : null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060044C3 RID: 17603 RVA: 0x0010F660 File Offset: 0x0010D860
|
|
[CallerCount(5)]
|
|
[CachedScanResults(RefRangeStart = 556410, RefRangeEnd = 556415, XrefRangeStart = 556407, XrefRangeEnd = 556410, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe T GetData<T>(Il2CppStructArray<byte> source)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameDataProvider.MethodInfoStoreGeneric_GetData_Public_T_Il2CppStructArray_1_Byte_0<T>.Pointer, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
return IL2CPP.PointerToValueGeneric<T>(intPtr, false, true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060044C4 RID: 17604 RVA: 0x0010F6C4 File Offset: 0x0010D8C4
|
|
[CallerCount(1)]
|
|
[CachedScanResults(RefRangeStart = 556419, RefRangeEnd = 556420, XrefRangeStart = 556415, XrefRangeEnd = 556419, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe string Serialize(Object data, bool indent)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr;
|
|
checked
|
|
{
|
|
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(data);
|
|
}
|
|
ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref indent;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameDataProvider.NativeMethodInfoPtr_Serialize_Public_String_Object_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
return IL2CPP.Il2CppStringToManaged(intPtr);
|
|
}
|
|
|
|
// Token: 0x060044C5 RID: 17605 RVA: 0x0010F73C File Offset: 0x0010D93C
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 556420, XrefRangeEnd = 556423, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe T Deserialize<T>(string data)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.ManagedStringToIl2Cpp(data);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameDataProvider.MethodInfoStoreGeneric_Deserialize_Public_T_String_0<T>.Pointer, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
return IL2CPP.PointerToValueGeneric<T>(intPtr, false, true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060044C6 RID: 17606 RVA: 0x0010F7A0 File Offset: 0x0010D9A0
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static GameDataProvider()
|
|
{
|
|
Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "GameDataProvider");
|
|
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr);
|
|
GameDataProvider.NativeFieldInfoPtr_aes = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr, "aes");
|
|
GameDataProvider.NativeFieldInfoPtr_settings = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr, "settings");
|
|
GameDataProvider.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr, 100667572);
|
|
GameDataProvider.NativeMethodInfoPtr_GetBytes_Public_Il2CppStructArray_1_Byte_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr, 100667573);
|
|
GameDataProvider.NativeMethodInfoPtr_GetData_Public_T_Il2CppStructArray_1_Byte_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr, 100667574);
|
|
GameDataProvider.NativeMethodInfoPtr_Serialize_Public_String_Object_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr, 100667575);
|
|
GameDataProvider.NativeMethodInfoPtr_Deserialize_Public_T_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr, 100667576);
|
|
}
|
|
|
|
// Token: 0x060044C7 RID: 17607 RVA: 0x0000A74C File Offset: 0x0000894C
|
|
public GameDataProvider(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x1700194B RID: 6475
|
|
// (get) Token: 0x060044C8 RID: 17608 RVA: 0x0010F85C File Offset: 0x0010DA5C
|
|
// (set) Token: 0x060044C9 RID: 17609 RVA: 0x0010F890 File Offset: 0x0010DA90
|
|
public unsafe AESCryptography aes
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameDataProvider.NativeFieldInfoPtr_aes);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new AESCryptography(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameDataProvider.NativeFieldInfoPtr_aes), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700194C RID: 6476
|
|
// (get) Token: 0x060044CA RID: 17610 RVA: 0x0010F8B8 File Offset: 0x0010DAB8
|
|
// (set) Token: 0x060044CB RID: 17611 RVA: 0x0010F8EC File Offset: 0x0010DAEC
|
|
public unsafe JsonSerializerSettings settings
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameDataProvider.NativeFieldInfoPtr_settings);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new JsonSerializerSettings(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameDataProvider.NativeFieldInfoPtr_settings), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x04002CBF RID: 11455
|
|
private static readonly IntPtr NativeFieldInfoPtr_aes;
|
|
|
|
// Token: 0x04002CC0 RID: 11456
|
|
private static readonly IntPtr NativeFieldInfoPtr_settings;
|
|
|
|
// Token: 0x04002CC1 RID: 11457
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
|
|
|
|
// Token: 0x04002CC2 RID: 11458
|
|
private static readonly IntPtr NativeMethodInfoPtr_GetBytes_Public_Il2CppStructArray_1_Byte_Object_0;
|
|
|
|
// Token: 0x04002CC3 RID: 11459
|
|
private static readonly IntPtr NativeMethodInfoPtr_GetData_Public_T_Il2CppStructArray_1_Byte_0;
|
|
|
|
// Token: 0x04002CC4 RID: 11460
|
|
private static readonly IntPtr NativeMethodInfoPtr_Serialize_Public_String_Object_Boolean_0;
|
|
|
|
// Token: 0x04002CC5 RID: 11461
|
|
private static readonly IntPtr NativeMethodInfoPtr_Deserialize_Public_T_String_0;
|
|
|
|
// Token: 0x02000167 RID: 359
|
|
private sealed class MethodInfoStoreGeneric_GetData_Public_T_Il2CppStructArray_1_Byte_0<T>
|
|
{
|
|
// Token: 0x04002CC6 RID: 11462
|
|
internal static IntPtr Pointer = IL2CPP.il2cpp_method_get_from_reflection(IL2CPP.Il2CppObjectBaseToPtrNotNull(new MethodInfo(IL2CPP.il2cpp_method_get_object(GameDataProvider.NativeMethodInfoPtr_GetData_Public_T_Il2CppStructArray_1_Byte_0, Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr)).MakeGenericMethod(new Il2CppReferenceArray<Type>(new Type[] { Type.internal_from_handle(IL2CPP.il2cpp_class_get_type(Il2CppClassPointerStore<T>.NativeClassPtr)) }))));
|
|
}
|
|
|
|
// Token: 0x02000168 RID: 360
|
|
private sealed class MethodInfoStoreGeneric_Deserialize_Public_T_String_0<T>
|
|
{
|
|
// Token: 0x04002CC7 RID: 11463
|
|
internal static IntPtr Pointer = IL2CPP.il2cpp_method_get_from_reflection(IL2CPP.Il2CppObjectBaseToPtrNotNull(new MethodInfo(IL2CPP.il2cpp_method_get_object(GameDataProvider.NativeMethodInfoPtr_Deserialize_Public_T_String_0, Il2CppClassPointerStore<GameDataProvider>.NativeClassPtr)).MakeGenericMethod(new Il2CppReferenceArray<Type>(new Type[] { Type.internal_from_handle(IL2CPP.il2cpp_class_get_type(Il2CppClassPointerStore<T>.NativeClassPtr)) }))));
|
|
}
|
|
}
|