m
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Runtime.Serialization
|
||||
{
|
||||
/// <summary>Generates IDs for objects.</summary>
|
||||
// Token: 0x02000461 RID: 1121
|
||||
[Token(Token = "0x2000461")]
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public class ObjectIDGenerator
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.Serialization.ObjectIDGenerator" /> class.</summary>
|
||||
// Token: 0x060026A1 RID: 9889 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60026A1")]
|
||||
[Address(RVA = "0x2669660", Offset = "0x2668660", VA = "0x182669660")]
|
||||
public ObjectIDGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060026A2 RID: 9890 RVA: 0x00017B68 File Offset: 0x00015D68
|
||||
[Token(Token = "0x60026A2")]
|
||||
[Address(RVA = "0x2668F70", Offset = "0x2667F70", VA = "0x182668F70")]
|
||||
private int FindElement(object obj, out bool found)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Returns the ID for the specified object, generating a new ID if the specified object has not already been identified by the <see cref="T:System.Runtime.Serialization.ObjectIDGenerator" />.</summary>
|
||||
/// <param name="obj">The object you want an ID for.</param>
|
||||
/// <param name="firstTime">
|
||||
/// <see langword="true" /> if <paramref name="obj" /> was not previously known to the <see cref="T:System.Runtime.Serialization.ObjectIDGenerator" />; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The object's ID is used for serialization. <paramref name="firstTime" /> is set to <see langword="true" /> if this is the first time the object has been identified; otherwise, it is set to <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The <see cref="T:System.Runtime.Serialization.ObjectIDGenerator" /> has been asked to keep track of too many objects.</exception>
|
||||
// Token: 0x060026A3 RID: 9891 RVA: 0x00017B80 File Offset: 0x00015D80
|
||||
[Token(Token = "0x60026A3")]
|
||||
[Address(RVA = "0x2669030", Offset = "0x2668030", VA = "0x182669030", Slot = "4")]
|
||||
public virtual long GetId(object obj, out bool firstTime)
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
/// <summary>Determines whether an object has already been assigned an ID.</summary>
|
||||
/// <param name="obj">The object you are asking for.</param>
|
||||
/// <param name="firstTime">
|
||||
/// <see langword="true" /> if <paramref name="obj" /> was not previously known to the <see cref="T:System.Runtime.Serialization.ObjectIDGenerator" />; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The object ID of <paramref name="obj" /> if previously known to the <see cref="T:System.Runtime.Serialization.ObjectIDGenerator" />; otherwise, zero.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />.</exception>
|
||||
// Token: 0x060026A4 RID: 9892 RVA: 0x00017B98 File Offset: 0x00015D98
|
||||
[Token(Token = "0x60026A4")]
|
||||
[Address(RVA = "0x2669200", Offset = "0x2668200", VA = "0x182669200", Slot = "5")]
|
||||
public virtual long HasId(object obj, out bool firstTime)
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
// Token: 0x060026A5 RID: 9893 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60026A5")]
|
||||
[Address(RVA = "0x26692F0", Offset = "0x26682F0", VA = "0x1826692F0")]
|
||||
private void Rehash()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001559 RID: 5465
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001559")]
|
||||
internal int m_currentCount;
|
||||
|
||||
// Token: 0x0400155A RID: 5466
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x400155A")]
|
||||
internal int m_currentSize;
|
||||
|
||||
// Token: 0x0400155B RID: 5467
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400155B")]
|
||||
internal long[] m_ids;
|
||||
|
||||
// Token: 0x0400155C RID: 5468
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400155C")]
|
||||
internal object[] m_objs;
|
||||
|
||||
// Token: 0x0400155D RID: 5469
|
||||
[Token(Token = "0x400155D")]
|
||||
private static readonly int[] sizes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user