本文整理汇总了C#中GameRevision.GW2Emu.Common.Serialization.Serializer.WriteVarint方法的典型用法代码示例。如果您正苦于以下问题:C# Serializer.WriteVarint方法的具体用法?C# Serializer.WriteVarint怎么用?C# Serializer.WriteVarint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameRevision.GW2Emu.Common.Serialization.Serializer
的用法示例。
在下文中一共展示了Serializer.WriteVarint方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.Write(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.Write(this.Unknown2);
serializer.Write(this.Unknown3);
serializer.Write(this.Unknown4);
serializer.Write(this.Unknown5);
serializer.Write(this.Unknown6);
serializer.Write(this.Unknown7);
serializer.Write(this.Unknown8);
serializer.Write((byte)Unknown9.Length);
for (int i = 0; i < Unknown9.Length; i++)
{
serializer.WriteVarint(Unknown9[i]);
}
serializer.WriteUtf16String(this.Unknown10);
serializer.WriteUtf16String(this.Unknown11);
serializer.Write(this.Unknown12);
serializer.Write(this.Unknown13);
serializer.Write((byte)Unknown25.Length);
for (int i = 0; i < Unknown25.Length; i++)
{
Unknown25[i].Serialize(serializer);
}
serializer.Write(this.Unknown26);
serializer.Write(this.Unknown27);
}
示例2: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.WriteVarint(this.Unknown2);
}
示例3: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.Write(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.Write(this.Unknown2);
serializer.WriteVarint(this.Unknown3);
serializer.Write((byte)Unknown4.Length);
for (int i = 0; i < Unknown4.Length; i++)
{
serializer.Write(Unknown4[i]);
}
serializer.Write(this.Unknown5);
serializer.WriteVarint(this.Unknown6);
serializer.Write(this.Unknown7);
serializer.Write(this.Unknown8);
serializer.Write(this.Unknown9);
serializer.Write(this.Unknown10);
serializer.Write(this.Unknown11);
for (int i = 0; i < this.Unknown12.Length; i++)
{
serializer.Write(this.Unknown12[i]);
}
serializer.Write(this.Unknown13);
}
示例4: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.WriteVarint(this.Unknown2);
serializer.WriteUtf16String(this.Unknown3);
serializer.Write(this.Unknown4);
serializer.Write(this.Unknown5);
serializer.Write(this.Unknown6);
serializer.WriteUtf16String(this.Unknown7);
for (int i = 0; i < this.Unknown8.Length; i++)
{
serializer.WriteVarint(this.Unknown8[i]);
}
serializer.Write((byte)Unknown9.Length);
for (int i = 0; i < Unknown9.Length; i++)
{
serializer.WriteVarint(Unknown9[i]);
}
serializer.Write((byte)Unknown10.Length);
for (int i = 0; i < Unknown10.Length; i++)
{
serializer.Write(Unknown10[i]);
}
serializer.Write((byte)Unknown11.Length);
for (int i = 0; i < Unknown11.Length; i++)
{
serializer.WriteVarint(Unknown11[i]);
}
}
示例5: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.Write(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.Write(this.Unknown2);
serializer.WriteVarint(this.Unknown3);
serializer.Write((byte)Unknown4.Length);
for (int i = 0; i < Unknown4.Length; i++)
{
serializer.Write(Unknown4[i]);
}
serializer.Write(this.Unknown5);
serializer.WriteVarint(this.Unknown6);
serializer.Write(this.Unknown7.IsPresent ? (byte) 1 : (byte) 0);
if (this.Unknown7.IsPresent)
{
serializer.Write(this.Unknown7.Value);
}
serializer.Write(this.Unknown8);
serializer.Write(this.Unknown9);
serializer.Write(this.Unknown10);
serializer.Write(this.Unknown11);
serializer.Write(this.Unknown12);
serializer.Write(this.Unknown13);
}
示例6: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.WriteVarint(this.Unknown2);
serializer.Write(this.Unknown3);
serializer.WriteUtf16String(this.Unknown4);
}
示例7: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.Write((byte)Unknown1.Length);
for (int i = 0; i < Unknown1.Length; i++)
{
serializer.WriteVarint(Unknown1[i]);
}
}
示例8: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.Write(this.Unknown2);
serializer.Write(this.Unknown3);
serializer.Write(this.Unknown4);
serializer.WriteVarint(this.Unknown5);
serializer.Write(this.Unknown6);
serializer.Write(this.Unknown7);
serializer.WriteVarint(this.Unknown8);
}
示例9: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.Write(this.Unknown1);
serializer.WriteVarint(this.Unknown2);
serializer.WriteUtf16String(this.Unknown3);
serializer.Write((ushort)Unknown4.Length);
for (int i = 0; i < Unknown4.Length; i++)
{
serializer.Write(Unknown4[i]);
}
}
示例10: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.Write(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.Write(this.Unknown2);
serializer.WriteVarint(this.Unknown3);
serializer.Write((byte)Unknown4.Length);
for (int i = 0; i < Unknown4.Length; i++)
{
serializer.Write(Unknown4[i]);
}
serializer.Write(this.Unknown5);
serializer.WriteVarint(this.Unknown6);
serializer.Write(this.Unknown7);
serializer.Write(this.Unknown8);
serializer.Write(this.Unknown9.IsPresent ? (byte) 1 : (byte) 0);
if (this.Unknown9.IsPresent)
{
serializer.Write(this.Unknown9.Value);
}
serializer.Write(this.Unknown10);
serializer.WriteVarint(this.Unknown11);
serializer.Write(this.Unknown17.IsPresent ? (byte) 1 : (byte) 0);
if (this.Unknown17.IsPresent)
{
this.Unknown17.Value.Serialize(serializer);
}
serializer.Write(this.Unknown18.IsPresent ? (byte) 1 : (byte) 0);
if (this.Unknown18.IsPresent)
{
serializer.Write(this.Unknown18.Value);
}
serializer.Write(this.Unknown19.IsPresent ? (byte) 1 : (byte) 0);
if (this.Unknown19.IsPresent)
{
serializer.Write(this.Unknown19.Value);
}
serializer.Write(this.Unknown23.IsPresent ? (byte) 1 : (byte) 0);
if (this.Unknown23.IsPresent)
{
this.Unknown23.Value.Serialize(serializer);
}
serializer.WriteUtf16String(this.Unknown24);
serializer.Write(this.Unknown25.IsPresent ? (byte) 1 : (byte) 0);
if (this.Unknown25.IsPresent)
{
serializer.Write(this.Unknown25.Value);
}
}
示例11: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.Write(this.Unknown1);
serializer.Write(this.Unknown2);
serializer.WriteVarint(this.Unknown3);
serializer.WriteVarint(this.Unknown4);
serializer.WriteVarint(this.Unknown5);
serializer.WriteVarint(this.Unknown6);
serializer.WriteVarint(this.Unknown7);
serializer.WriteVarint(this.Unknown8);
for (int i = 0; i < this.Unknown9.Length; i++)
{
serializer.Write(this.Unknown9[i]);
}
serializer.Write((byte)Unknown16.Length);
for (int i = 0; i < Unknown16.Length; i++)
{
Unknown16[i].Serialize(serializer);
}
for (int i = 0; i < this.Unknown17.Length; i++)
{
serializer.Write(this.Unknown17[i]);
}
}
示例12: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.Write((ushort)Unknown0.Length);
for (int i = 0; i < Unknown0.Length; i++)
{
serializer.WriteVarint(Unknown0[i]);
}
}
示例13: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.Write(this.Unknown1);
for (int i = 0; i < this.Unknown6.Length; i++)
{
this.Unknown6[i].Serialize(serializer);
}
}
示例14: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
for (int i = 0; i < this.Unknown1.Length; i++)
{
serializer.Write(this.Unknown1[i]);
}
serializer.Write(this.Unknown2);
serializer.Write(this.Unknown3);
serializer.Write(this.Unknown4);
}
示例15: Serialize
public void Serialize(Serializer serializer)
{
serializer.Write(Header);
serializer.WriteVarint(this.Unknown0);
serializer.WriteVarint(this.Unknown1);
serializer.WriteVarint(this.Unknown2);
serializer.Write(this.Unknown3);
serializer.Write(this.Unknown4);
serializer.WriteVarint(this.Unknown5);
serializer.WriteVarint(this.Unknown6);
serializer.WriteVarint(this.Unknown7);
serializer.WriteVarint(this.Unknown8);
serializer.Write(this.Unknown9);
serializer.WriteVarint(this.Unknown10);
serializer.WriteVarint(this.Unknown11);
serializer.WriteUtf16String(this.Unknown12);
serializer.WriteUtf16String(this.Unknown13);
serializer.WriteUtf16String(this.Unknown14);
}