Beispiel #1
0
 public static void Serialize(Stream stream, ConnectRequest instance)
 {
     if (instance.HasClientId)
     {
         stream.WriteByte(10);
         ProtocolParser.WriteUInt32(stream, instance.ClientId.GetSerializedSize());
         ProcessId.Serialize(stream, instance.ClientId);
     }
     if (instance.HasBindRequest)
     {
         stream.WriteByte(18);
         ProtocolParser.WriteUInt32(stream, instance.BindRequest.GetSerializedSize());
         BindRequest.Serialize(stream, instance.BindRequest);
     }
 }
Beispiel #2
0
 public void Serialize(Stream stream)
 {
     BindRequest.Serialize(stream, this);
 }