Beispiel #1
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                Id.ToBytes(),
                Ip.ToBytes(),
                IpV6.ToBytes(),
                Port.ToBytes(),
                PeerTag.ToBytes()));
 }
Beispiel #2
0
        public override void ToStream(Stream output)
        {
            output.Write(TLUtils.SignatureToBytes(Signature));

            Id.ToStream(output);
            Ip.ToStream(output);
            IpV6.ToStream(output);
            Port.ToStream(output);
            PeerTag.ToStream(output);
        }