Ejemplo n.º 1
0
 public static Handshake Deserialize(ref SpanReader br)
 {
     return(new Handshake
     {
         ProtocolVersion = br.ReadAsVarInt(out _),
         ServerAddress = br.ReadAsString(),
         ServerPort = br.ReadAsUnsignedShort(),
         NextState = br.ReadAsVarInt(out _)
     });
 }