Beispiel #1
0
        public static VarStr FromStream(Stream s)
        {
            VarStr x = new VarStr();

            x.Read(s);
            return(x);
        }
Beispiel #2
0
 public void Read(Stream s)
 {
     BinaryReader br = new BinaryReader(s);
     version = br.ReadInt32();
     services = (Services)br.ReadUInt64();
     timestamp = br.ReadInt64();
     addr_recv = NetAddr.FromStream(s);
     addr_from = NetAddr.FromStream(s);
     nonce = br.ReadUInt64();
     user_agent = VarStr.FromStream(s);
     start_height = br.ReadInt32();
 }
Beispiel #3
0
        public void Read(Stream s)
        {
            BinaryReader br = new BinaryReader(s);

            version      = br.ReadInt32();
            services     = (Services)br.ReadUInt64();
            timestamp    = br.ReadInt64();
            addr_recv    = NetAddr.FromStream(s);
            addr_from    = NetAddr.FromStream(s);
            nonce        = br.ReadUInt64();
            user_agent   = VarStr.FromStream(s);
            start_height = br.ReadInt32();
        }
Beispiel #4
0
 public void Read(Stream s)
 {
     payload = VarStr.FromStream(s);
     signature = VarStr.FromStream(s);
 }
Beispiel #5
0
 public void Read(Stream s)
 {
     payload   = VarStr.FromStream(s);
     signature = VarStr.FromStream(s);
 }
Beispiel #6
0
 public static VarStr FromStream(Stream s)
 {
     VarStr x = new VarStr();
     x.Read(s);
     return x;
 }