public void TestIntList()
        {
            _sendBridgeStream.Write(new List<int>() { 10, 11, 12 });
            var data = _sendBridgeStream.Encode();

            var receivePacket = new BridgeStream(data);
            var sendValue = receivePacket.ReadIntList();
            var expected = new List<int>() { 10, 11, 12 };
            Assert.AreEqual(expected, sendValue);
        }
 public void Read(BridgeStream stream)
 {
     matchId     = stream.ReadInt();
     playerIds   = stream.ReadIntList();
     playerNames = stream.ReadStringList();
 }