public static SCPEnvelope Decode(XdrDataInputStream stream)
        {
            SCPEnvelope decodedSCPEnvelope = new SCPEnvelope();

            decodedSCPEnvelope.Statement = SCPStatement.Decode(stream);
            decodedSCPEnvelope.Signature = Signature.Decode(stream);
            return(decodedSCPEnvelope);
        }
        public static SCPStatement Decode(XdrDataInputStream stream)
        {
            SCPStatement decodedSCPStatement = new SCPStatement();

            decodedSCPStatement.NodeID    = NodeID.Decode(stream);
            decodedSCPStatement.SlotIndex = Uint64.Decode(stream);
            decodedSCPStatement.Pledges   = SCPStatementPledges.Decode(stream);
            return(decodedSCPStatement);
        }
 public static void Encode(XdrDataOutputStream stream, SCPEnvelope encodedSCPEnvelope)
 {
     SCPStatement.Encode(stream, encodedSCPEnvelope.Statement);
     Signature.Encode(stream, encodedSCPEnvelope.Signature);
 }
 public static void Encode(XdrDataOutputStream stream, SCPStatement encodedSCPStatement)
 {
     NodeID.Encode(stream, encodedSCPStatement.NodeID);
     Uint64.Encode(stream, encodedSCPStatement.SlotIndex);
     SCPStatementPledges.Encode(stream, encodedSCPStatement.Pledges);
 }