using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Runtime.Serialization
{
/// Generates IDs for objects.
// Token: 0x02000461 RID: 1121
[Token(Token = "0x2000461")]
[ComVisible(true)]
[Serializable]
public class ObjectIDGenerator
{
/// Initializes a new instance of the class.
// 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;
}
/// Returns the ID for the specified object, generating a new ID if the specified object has not already been identified by the .
/// The object you want an ID for.
///
/// if was not previously known to the ; otherwise, .
/// The object's ID is used for serialization. is set to if this is the first time the object has been identified; otherwise, it is set to .
/// The parameter is .
/// The has been asked to keep track of too many objects.
// 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;
}
/// Determines whether an object has already been assigned an ID.
/// The object you are asking for.
///
/// if was not previously known to the ; otherwise, .
/// The object ID of if previously known to the ; otherwise, zero.
/// The parameter is .
// 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;
}
}