91 lines
4.0 KiB
C#
91 lines
4.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.Serialization
|
|
{
|
|
/// <summary>Generates IDs for objects.</summary>
|
|
// Token: 0x02000445 RID: 1093
|
|
[Token(Token = "0x2000445")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class ObjectIDGenerator
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.Serialization.ObjectIDGenerator" /> class.</summary>
|
|
// 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;
|
|
}
|
|
|
|
/// <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: 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;
|
|
}
|
|
|
|
/// <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: 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;
|
|
}
|
|
}
|