本文整理汇总了C#中RakNet.BitStream.ReadDelta方法的典型用法代码示例。如果您正苦于以下问题:C# BitStream.ReadDelta方法的具体用法?C# BitStream.ReadDelta怎么用?C# BitStream.ReadDelta使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RakNet.BitStream
的用法示例。
在下文中一共展示了BitStream.ReadDelta方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
//.........这里部分代码省略.........
Console.WriteLine("testBitStream1 hex and bits");
testBitStream1.PrintHex();
Console.WriteLine("\n");
testBitStream1.PrintBits();
Console.WriteLine("\ntestBitStream1 hex and bits");
Console.WriteLine("testBitStream2 hex and bits end");
testBitStream2.PrintHex();
Console.WriteLine("\n");
testBitStream2.PrintBits();
Console.WriteLine("\ntestBitStream2 hex and bits end");
String testString;
Console.WriteLine("testBitStream2 hex and bits string output");
testBitStream2.PrintHex(out testString);
Console.WriteLine(testString + "\n");
testBitStream2.PrintBits(out testString);
Console.WriteLine(testString);
Console.WriteLine("testBitStream2 hex and bits string output end");
testBitStream2.Read(out testString);
Console.WriteLine(testString);
Console.WriteLine(testBitStream2.ReadCompressed(out testString));
Console.WriteLine(testString);
testBitStream2.WriteCompressedDelta("xy", "yz");
testBitStream2.WriteCompressedDelta("xy", "xy");
Console.WriteLine(testBitStream2.ReadCompressedDelta(out testString));
Console.WriteLine(testString);
Console.WriteLine(testBitStream2.ReadCompressedDelta(out testString));
Console.WriteLine(testString);
testBitStream2.WriteDelta("xy", "yz");
testBitStream2.WriteDelta("xy", "xy");
Console.WriteLine(testBitStream2.ReadDelta(out testString));
Console.WriteLine(testString);
Console.WriteLine(testBitStream2.ReadDelta(out testString));
Console.WriteLine(testString);
float testFloat;
testBitStream2.ReadFloat16(out testFloat, 0, 100);
Console.WriteLine(testFloat);
testBitStream2.ReadBits(testBuffer, 7);
Console.WriteLine(testBuffer[0]);
testBitStream2.ReadAlignedBytesSafe(testBuffer, 1, 1);
Console.WriteLine(testBuffer[0]);
testBitStream2.ReadAlignedBytes(testBuffer, 1);
Console.WriteLine(testBuffer[0]);
Console.WriteLine(testBitStream2.ReadBit());
Console.WriteLine(testBitStream2.ReadBit());
int intForSerialization2 = 0;
testBitStream2.Serialize(false, ref intForSerialization2);
Console.WriteLine(intForSerialization2);
testBitStream2.PadWithZeroToByteLength(99);
testBitStream2.PrintBits();
testBitStream2.SetData(testBuffer);
Console.WriteLine("setbuff");
testBitStream2.PrintBits();
Console.WriteLine(testBitStream2.GetNumberOfBitsAllocated());
//ByteQueue
Console.WriteLine("ByteQueue");
ByteQueue testByteQueue = new ByteQueue();
testByteQueue.WriteBytes(testBuffer, (uint)testBuffer.Length, "", 0);
testByteQueue.DecrementReadOffset(1);