public void Unpack(UdpBitStream buffer, UdpSocket socket) { ObjSequence = TrimSequence(buffer.ReadUShort(16)); AckSequence = TrimSequence(buffer.ReadUShort(16)); AckHistory = buffer.ReadULong(socket.Config.AckRedundancy); if (socket.Config.CalculateNetworkPing) { AckTime = buffer.ReadUShort(16); } if (socket.Config.WritePacketBitSize) { BitSize = buffer.ReadUShort(16); } }
public void Unpack(UdpBitStream buffer, UdpSocket socket) { ObjSequence = TrimSequence(buffer.ReadUShort(16)); AckSequence = TrimSequence(buffer.ReadUShort(16)); AckHistory = buffer.ReadULong(socket.Config.AckRedundancy); if (socket.Config.CalculateNetworkPing) { AckTime = buffer.ReadUShort(16); } if (socket.Config.WritePacketBitSize) { BitSize = buffer.ReadUShort(16); } }