55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using System;
|
|
|
|
namespace UnityEngine.Networking
|
|
{
|
|
// Token: 0x02000069 RID: 105
|
|
public class SyncListUInt : SyncList<uint>
|
|
{
|
|
// Token: 0x06000535 RID: 1333 RVA: 0x0001E589 File Offset: 0x0001C789
|
|
protected override void SerializeItem(NetworkWriter writer, uint item)
|
|
{
|
|
writer.WritePackedUInt32(item);
|
|
}
|
|
|
|
// Token: 0x06000536 RID: 1334 RVA: 0x0001E594 File Offset: 0x0001C794
|
|
protected override uint DeserializeItem(NetworkReader reader)
|
|
{
|
|
return reader.ReadPackedUInt32();
|
|
}
|
|
|
|
// Token: 0x06000537 RID: 1335 RVA: 0x0001E5B0 File Offset: 0x0001C7B0
|
|
[Obsolete("ReadReference is now used instead")]
|
|
public static SyncListUInt ReadInstance(NetworkReader reader)
|
|
{
|
|
ushort num = reader.ReadUInt16();
|
|
SyncListUInt syncListUInt = new SyncListUInt();
|
|
for (ushort num2 = 0; num2 < num; num2 += 1)
|
|
{
|
|
syncListUInt.AddInternal(reader.ReadPackedUInt32());
|
|
}
|
|
return syncListUInt;
|
|
}
|
|
|
|
// Token: 0x06000538 RID: 1336 RVA: 0x0001E5F4 File Offset: 0x0001C7F4
|
|
public static void ReadReference(NetworkReader reader, SyncListUInt syncList)
|
|
{
|
|
ushort num = reader.ReadUInt16();
|
|
syncList.Clear();
|
|
for (ushort num2 = 0; num2 < num; num2 += 1)
|
|
{
|
|
syncList.AddInternal(reader.ReadPackedUInt32());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000539 RID: 1337 RVA: 0x0001E630 File Offset: 0x0001C830
|
|
public static void WriteInstance(NetworkWriter writer, SyncListUInt items)
|
|
{
|
|
writer.Write((ushort)items.Count);
|
|
for (int i = 0; i < items.Count; i++)
|
|
{
|
|
writer.WritePackedUInt32(items[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|