m
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace Steamworks
|
||||
{
|
||||
// Token: 0x020017B2 RID: 6066
|
||||
[Token(Token = "0x20017B2")]
|
||||
public class MMKVPMarshaller
|
||||
{
|
||||
// Token: 0x06008B37 RID: 35639 RVA: 0x001D6A9C File Offset: 0x001D4C9C
|
||||
[Token(Token = "0x6008B37")]
|
||||
[Address(RVA = "0x950740", Offset = "0x94F740", VA = "0x180950740")]
|
||||
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: 0x06008B38 RID: 35640 RVA: 0x001D6B50 File Offset: 0x001D4D50
|
||||
[Token(Token = "0x6008B38")]
|
||||
[Address(RVA = "0x950630", Offset = "0x94F630", VA = "0x180950630", 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: 0x06008B39 RID: 35641 RVA: 0x001D6BA4 File Offset: 0x001D4DA4
|
||||
[Token(Token = "0x6008B39")]
|
||||
[Address(RVA = "0x950940", Offset = "0x94F940", VA = "0x180950940")]
|
||||
public static implicit operator IntPtr(MMKVPMarshaller that)
|
||||
{
|
||||
return that.m_pNativeArray;
|
||||
}
|
||||
|
||||
// Token: 0x04005B31 RID: 23345
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005B31")]
|
||||
private IntPtr m_pNativeArray;
|
||||
|
||||
// Token: 0x04005B32 RID: 23346
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005B32")]
|
||||
private IntPtr m_pArrayEntries;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user