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