public static void Encode(XdrDataOutputStream stream, SurveyRequestMessage encodedSurveyRequestMessage)
 {
     NodeID.Encode(stream, encodedSurveyRequestMessage.SurveyorPeerID);
     NodeID.Encode(stream, encodedSurveyRequestMessage.SurveyedPeerID);
     Uint32.Encode(stream, encodedSurveyRequestMessage.LedgerNum);
     Curve25519Public.Encode(stream, encodedSurveyRequestMessage.EncryptionKey);
     SurveyMessageCommandType.Encode(stream, encodedSurveyRequestMessage.CommandType);
 }
 public static void Encode(XdrDataOutputStream stream, SurveyResponseMessage encodedSurveyResponseMessage)
 {
     NodeID.Encode(stream, encodedSurveyResponseMessage.SurveyorPeerID);
     NodeID.Encode(stream, encodedSurveyResponseMessage.SurveyedPeerID);
     Uint32.Encode(stream, encodedSurveyResponseMessage.LedgerNum);
     SurveyMessageCommandType.Encode(stream, encodedSurveyResponseMessage.CommandType);
     EncryptedBody.Encode(stream, encodedSurveyResponseMessage.EncryptedBody);
 }