示例#1
0
 public void Write(ISink s, short msk = 0xff)
 {
     s.Put(nameof(seq), seq);
     s.Put(nameof(acct), acct);
     s.Put(nameof(name), name);
     s.Put(nameof(amt), amt);
     s.Put(nameof(bal), bal);
 }
示例#2
0
文件: Peer.cs 项目: skyiah/skychain
        public override void Write(ISink s, short msk = 0xff)
        {
            base.Write(s, msk);

            s.Put(nameof(id), id);
            s.Put(nameof(weburl), weburl);
            s.Put(nameof(secret), secret);
        }
示例#3
0
 public void Write(ISink s, byte proj = 0x0f)
 {
     s.Put(nameof(shard), shard);
     s.Put(nameof(descr), descr);
     s.Put(nameof(logging), logging);
     s.Put(nameof(cipher), cipher);
     s.Put(nameof(certpasswd), certpasswd);
     s.Put(nameof(@ref), @ref);
 }
示例#4
0
 public virtual void Write(ISink s, short msk = 0xff)
 {
     if ((msk & BORN) == BORN)
     {
         s.Put(nameof(typ), typ);
         s.Put(nameof(created), created);
         s.Put(nameof(creator), creator);
     }
     s.Put(nameof(state), state);
     s.Put(nameof(name), name);
     s.Put(nameof(tip), tip);
     if ((msk & LATER) == LATER)
     {
         s.Put(nameof(adapted), adapted);
         s.Put(nameof(adapter), adapter);
     }
 }
示例#5
0
 public void Produce()
 {
     sink.Put(new T());
 }