using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Runtime.Serialization
{
/// Generates IDs for objects.
// Token: 0x02000445 RID: 1093
[Token(Token = "0x2000445")]
[ComVisible(true)]
[Serializable]
public class ObjectIDGenerator
{
/// Initializes a new instance of the class.
// Token: 0x06002495 RID: 9365 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002495")]
[Address(RVA = "0x241ED10", Offset = "0x241DB10", VA = "0x18241ED10")]
public ObjectIDGenerator()
{
}
// Token: 0x06002496 RID: 9366 RVA: 0x00015798 File Offset: 0x00013998
[Token(Token = "0x6002496")]
[Address(RVA = "0x241E620", Offset = "0x241D420", VA = "0x18241E620")]
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: 0x06002497 RID: 9367 RVA: 0x000157B0 File Offset: 0x000139B0
[Token(Token = "0x6002497")]
[Address(RVA = "0x241E6E0", Offset = "0x241D4E0", VA = "0x18241E6E0", 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: 0x06002498 RID: 9368 RVA: 0x000157C8 File Offset: 0x000139C8
[Token(Token = "0x6002498")]
[Address(RVA = "0x241E8B0", Offset = "0x241D6B0", VA = "0x18241E8B0", Slot = "5")]
public virtual long HasId(object obj, out bool firstTime)
{
return 0L;
}
// Token: 0x06002499 RID: 9369 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002499")]
[Address(RVA = "0x241E9A0", Offset = "0x241D7A0", VA = "0x18241E9A0")]
private void Rehash()
{
}
// Token: 0x04001496 RID: 5270
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001496")]
internal int m_currentCount;
// Token: 0x04001497 RID: 5271
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
[Token(Token = "0x4001497")]
internal int m_currentSize;
// Token: 0x04001498 RID: 5272
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001498")]
internal long[] m_ids;
// Token: 0x04001499 RID: 5273
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001499")]
internal object[] m_objs;
// Token: 0x0400149A RID: 5274
[Token(Token = "0x400149A")]
private static readonly int[] sizes;
}
}