本文整理匯總了C#中RakNet.RakString.MakeFilePath方法的典型用法代碼示例。如果您正苦於以下問題:C# RakString.MakeFilePath方法的具體用法?C# RakString.MakeFilePath怎麽用?C# RakString.MakeFilePath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類RakNet.RakString
的用法示例。
在下文中一共展示了RakString.MakeFilePath方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Main
//.........這裏部分代碼省略.........
UDPProxyServer testUDPProxyServer = new UDPProxyServer();
UDPProxyServerResultHandler testUDPProxyServerResultHandler= new UDPProxyServerResultHandlerCB();
testServer.AttachPlugin(testUDPProxyServer);
testUDPProxyServer.SetResultHandler(testUDPProxyServerResultHandler);
testUDPProxyServer.LoginToCoordinator(rakStringTest,testServer.GetSystemAddressFromIndex(0));
testUDPProxyServer.udpForwarder = testUDPProxyServer.udpForwarder;
Console.WriteLine(testUDPProxyServer.udpForwarder);
//RakString
Console.WriteLine("RakString");
testRakString.AppendBytes(testBuffer, (uint)testBuffer.Length);
Console.WriteLine(testRakString.C_String());
Console.WriteLine(testRakString.C_StringUnsafe());
testRakString.Clear();
Console.WriteLine(testRakString.ContainsNonprintableExceptSpaces());
workingRakStringCopy = testRakString.Assign("MayJuneJuly", 0, 3);
workingRakStringCopy.Dispose();
Console.WriteLine(testRakString);
testRakString.CopyData(testRakString);
testRakString.Serialize(testBitStream2);
testRakString.Deserialize(testBitStream2);
testRakString.SerializeCompressed(testBitStream2);
testRakString.DeserializeCompressed(testBitStream2);
workingRakStringCopy = testRakString.Assign("MayJuneJuly", 0, 3);
workingRakStringCopy.Dispose();
testRakString.Erase(0, 1);
Console.WriteLine(testRakString.Find("y", 0));
Console.WriteLine(testRakString.GetLength());
Console.WriteLine(testRakString.IPAddressMatch("127.0.0.1"));
Console.WriteLine(testRakString.IsEmailAddress());
Console.WriteLine(testRakString.IsEmpty());
Console.WriteLine(testRakString.MakeFilePath());
testRakString.Printf();
testRakString.RemoveCharacter('a');
testRakString.Replace(0, 1, 'c');
testRakString.Set("cat");
testRakString.SetChar(0, 'r');
testRakString.SQLEscape();
Console.WriteLine(testRakString.StrCmp(testRakString));
Console.WriteLine(testRakString.StrICmp(testRakString));
workingRakStringCopy = testRakString.SubStr(0, 2);
Console.WriteLine(workingRakStringCopy);
workingRakStringCopy.Dispose();
Console.WriteLine(testRakString);
testRakString.TerminateAtFirstCharacter('y');
testRakString.TerminateAtLastCharacter('y');
Console.WriteLine(testRakString.ToLower());
Console.WriteLine(testRakString.ToUpper());
testRakString.Truncate(2);
testRakString.URLDecode();
testRakString.URLEncode();
//PluginInterface2
testUDPProxyServer.GetRakPeerInterface();
//RakPeerInterface
testPacket = testClient.AllocatePacket(5);
testClient.AddToBanList("127.0.0.1", 10);
testClient.AddToSecurityExceptionList("127.0.0.1");
testBuffer = testPacket.data;
testClient.AdvertiseSystem("127.0.0.1",60002,testBuffer,testBuffer.Length);
testClient.AllowConnectionResponseIPMigration(false);
testClient.CancelConnectionAttempt(testClient.GetSystemAddressFromIndex(0));
testClient.ChangeSystemAddress(testClient.GetGUIDFromIndex(0),testClient.GetSystemAddressFromIndex(0));