public GetDataResponse(
  byte[] data
,
  Stat stat
)
        {
            Data=data;
            Stat=stat;
        }
        public GetChildren2Response(
  System.Collections.Generic.IEnumerable<string> children
,
  Stat stat
)
        {
            Children=children;
            Stat=stat;
        }
        public GetACLResponse(
  System.Collections.Generic.IEnumerable<ACL> acl
,
  Stat stat
)
        {
            Acl=acl;
            Stat=stat;
        }
 public void Deserialize(IInputArchive a_, String tag)
 {
     a_.StartRecord(tag);
     {
       IIndex vidx1 = a_.StartVector("children");
       if (vidx1!= null) {          var tmpLst=new System.Collections.Generic.List<string>();
       for (; !vidx1.Done(); vidx1.Incr()) {
     String e1;
     e1=a_.ReadString("e1");
     tmpLst.Add(e1);
       }
     Children=tmpLst;
       }
     a_.EndVector("children");
     }
     Stat= new Stat();
     a_.ReadRecord(Stat,"stat");
     a_.EndRecord(tag);
 }
 public void Deserialize(IInputArchive a_, String tag)
 {
     a_.StartRecord(tag);
     Data=a_.ReadBuffer("data");
     Stat= new Stat();
     a_.ReadRecord(Stat,"stat");
     a_.EndRecord(tag);
 }
 public void CopyStat(Stat to)
 {
     try
     {
         SpinWait.SpinUntil(() => Interlocked.CompareExchange(ref lockedInt, 1, 0) == 0);
         to.Aversion = stat.Aversion;
         to.Ctime = stat.Ctime;
         to.Cversion = stat.Cversion;
         to.Czxid = stat.Czxid;
         to.Mtime = stat.Mtime;
         to.Mzxid = stat.Mzxid;
         to.Pzxid = stat.Pzxid;
         to.Version = stat.Version;
         to.EphemeralOwner = stat.EphemeralOwner;
         to.DataLength = data == null ? 0 : data.Length;
         if (this.children == null)
         {
             to.NumChildren = 0;
         }
         else
         {
             to.NumChildren = children.Count;
         }
     }
     finally
     {
         Interlocked.Exchange(ref lockedInt, 0);
     }
 }
 public static void CopyStat(Stat from, Stat to)
 {
     to.Aversion = from.Aversion;
     to.Ctime = from.Ctime;
     to.Cversion = from.Cversion;
     to.Czxid = from.Czxid;
     to.Mtime = from.Mtime;
     to.Mzxid = from.Mzxid;
     to.Pzxid = from.Pzxid;
     to.Version = from.Version;
     to.EphemeralOwner = from.EphemeralOwner;
     to.DataLength = from.DataLength;
     to.NumChildren = from.NumChildren;
 }
        public ExistsResponse(
  Stat stat
)
        {
            Stat=stat;
        }