You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-06 02:11:06 +09:00
bool ReadXXX(out result) versions added for some read methods
This commit is contained in:
@@ -69,7 +69,13 @@ namespace UnitTests
|
||||
bdr.Append(inc.ReadBoolean());
|
||||
bdr.Append(inc.ReadInt32(6));
|
||||
bdr.Append(inc.ReadInt32());
|
||||
bdr.Append(inc.ReadString());
|
||||
|
||||
string strResult;
|
||||
bool ok = inc.ReadString(out strResult);
|
||||
if (ok == false)
|
||||
throw new NetException("Read/write failure");
|
||||
bdr.Append(strResult);
|
||||
|
||||
bdr.Append(inc.ReadByte());
|
||||
|
||||
if (inc.PeekUInt16() != (ushort)44)
|
||||
|
||||
Reference in New Issue
Block a user