a
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace Steamworks
|
||||
{
|
||||
// Token: 0x020016D2 RID: 5842
|
||||
[Token(Token = "0x20016D2")]
|
||||
public class MMKVPMarshaller
|
||||
{
|
||||
// Token: 0x06008769 RID: 34665 RVA: 0x001CD9A4 File Offset: 0x001CBBA4
|
||||
[Token(Token = "0x6008769")]
|
||||
[Address(RVA = "0x23E1E40", Offset = "0x23E0C40", VA = "0x1823E1E40")]
|
||||
public MMKVPMarshaller(MatchMakingKeyValuePair_t[] filters)
|
||||
{
|
||||
if (filters != 0)
|
||||
{
|
||||
int num = Marshal.SizeOf(typeof(MatchMakingKeyValuePair_t));
|
||||
int num2 = Marshal.SizeOf(typeof(IntPtr));
|
||||
IntPtr intPtr = Marshal.AllocHGlobal(filters.Length * num2);
|
||||
this.m_pNativeArray = intPtr;
|
||||
IntPtr intPtr2 = Marshal.AllocHGlobal(filters.Length * num);
|
||||
int num3 = 0;
|
||||
this.m_pArrayEntries = intPtr2;
|
||||
int length = filters.Length;
|
||||
if (num3 < length)
|
||||
{
|
||||
num3 += 2;
|
||||
num3 += num3;
|
||||
num3 += num3;
|
||||
num3++;
|
||||
num3 += num;
|
||||
}
|
||||
IntPtr pNativeArray = this.m_pNativeArray;
|
||||
IntPtr pArrayEntries = this.m_pArrayEntries;
|
||||
Marshal.WriteIntPtr(pNativeArray, pArrayEntries);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600876A RID: 34666 RVA: 0x001CDA58 File Offset: 0x001CBC58
|
||||
[Token(Token = "0x600876A")]
|
||||
[Address(RVA = "0x23E1D30", Offset = "0x23E0B30", VA = "0x1823E1D30", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
int num2 = 0;
|
||||
if (this.m_pArrayEntries != (IntPtr)num2)
|
||||
{
|
||||
Marshal.FreeHGlobal(this.m_pArrayEntries);
|
||||
}
|
||||
int num3 = 0;
|
||||
if (this.m_pNativeArray != (IntPtr)num3)
|
||||
{
|
||||
Marshal.FreeHGlobal(this.m_pNativeArray);
|
||||
}
|
||||
base..ctor();
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600876B RID: 34667 RVA: 0x001CDAAC File Offset: 0x001CBCAC
|
||||
[Token(Token = "0x600876B")]
|
||||
[Address(RVA = "0x23E2040", Offset = "0x23E0E40", VA = "0x1823E2040")]
|
||||
public static implicit operator IntPtr(MMKVPMarshaller that)
|
||||
{
|
||||
return that.m_pNativeArray;
|
||||
}
|
||||
|
||||
// Token: 0x04005978 RID: 22904
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005978")]
|
||||
private IntPtr m_pNativeArray;
|
||||
|
||||
// Token: 0x04005979 RID: 22905
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005979")]
|
||||
private IntPtr m_pArrayEntries;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user