public static PeerAddress Decode(XdrDataInputStream stream) { PeerAddress decodedPeerAddress = new PeerAddress(); decodedPeerAddress.Ip = PeerAddressIp.Decode(stream); decodedPeerAddress.Port = Uint32.Decode(stream); decodedPeerAddress.NumFailures = Uint32.Decode(stream); return(decodedPeerAddress); }
public static PeerAddress Decode(IByteReader stream) { PeerAddress decodedPeerAddress = new PeerAddress(); decodedPeerAddress.Ip = PeerAddressIp.Decode(stream); decodedPeerAddress.Port = Uint32.Decode(stream); decodedPeerAddress.NumFailures = Uint32.Decode(stream); return(decodedPeerAddress); }