本文整理汇总了C#中StreamHandler.ReadXorByte方法的典型用法代码示例。如果您正苦于以下问题:C# StreamHandler.ReadXorByte方法的具体用法?C# StreamHandler.ReadXorByte怎么用?C# StreamHandler.ReadXorByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StreamHandler
的用法示例。
在下文中一共展示了StreamHandler.ReadXorByte方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MovementInfo
//.........这里部分代码省略.........
bytes[7] = Reader.UnalignedReadTinyInt(1);
bytes[5] = Reader.UnalignedReadTinyInt(1);
bytes[2] = Reader.UnalignedReadTinyInt(1);
}
}
this.UnkUInt32 = new uint[arrCounter];
for (uint i = 0; i < arrCounter; ++i)
{
this.UnkUInt32[i] = Reader.ReadUInt32();
}
if (this.HavePosition)
{
Reader
.ReadSingle(out this.Position.Z)
.ReadSingle(out this.Orientation)
.ReadSingle(out this.Position.X)
.ReadSingle(out this.Position.Y);
}
if (this.HaveVehicleData)
{
Reader
.ReadUInt32(out this.VehicleId)
.ReadSingle(out this.VehicleAimAdjustement);
}
if (this.HaveGameObjectPosition)
{
fixed (byte* bytes = this.TransportGuid.Bytes)
{
Reader
.ReadXorByte(ref bytes[1])
.ReadXorByte(ref bytes[4])
.ReadSingle(out this.TransportPosition.Z);
if (this.HaveTransportTime3)
this.TransportTime3 = Reader.ReadUInt32();
this.TransportTime = Reader.ReadUInt32();
Reader
.ReadXorByte(ref bytes[5])
.ReadXorByte(ref bytes[6])
.ReadSingle(out this.TransportPosition.X)
.ReadXorByte(ref bytes[2]);
if (this.HaveTransportTime2)
this.TransportTime2 = Reader.ReadUInt32();
Reader
.ReadSByte(out this.TransportSeat)
.ReadXorByte(ref bytes[3])
.ReadSingle(out this.TransportPosition.Y)
.ReadSingle(out this.TransportFacing)
.ReadXorByte(ref bytes[7])
.ReadXorByte(ref bytes[0]);
}
}
if (this.Living)
{
if (this.HaveSpline2)
{
if (this.HaveSpline)