public int useInner()
        {
            inner i = new inner();

            i.access();

            return(i.use);
        }
Exemple #2
0
    void counting(SObj status)
    {
        inner one = new inner()
        {
            inData = "all",
            offset = index++,
        };

        tPool.OnReceive(one);
        if (!quit)
        {
            timer.Change(100, Timeout.Infinite);
        }
    }
Exemple #3
0
 (getter.IsStatic() ? Call(null, method, inner) : (Expression)Call(inner, method)) :
Exemple #4
0
 public void meth(Object o)
 {
     inner inst = (inner)o;
 }
Exemple #5
0
 void worker(inner data)
 {
     ConsoleEx.DebugLog(fastJSON.JSON.Instance.ToJSON(data));
 }
Exemple #6
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 12);
     Eproto.PackInteger(wb, this.a);
     Eproto.PackInteger(wb, this.b);
     Eproto.PackDouble(wb, this.c);
     Eproto.PackDouble(wb, this.d);
     Eproto.PackString(wb, this.e);
     Eproto.PackBytes(wb, this.f);
     if (this.g == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         this.g.Encode(wb);
     }
     if (this.h == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackMap(wb, this.h.Count);
         foreach (var i in this.h)
         {
             Eproto.PackInteger(wb, i.Key);
             Eproto.PackString(wb, i.Value);
         }
     }
     if (this.i == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.i.Length);
         for (int i = 0; i < this.i.Length; ++i)
         {
             int v = this.i[i];
             Eproto.PackInteger(wb, v);
         }
     }
     if (this.j == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.j.Length);
         for (int i = 0; i < this.j.Length; ++i)
         {
             inner v = this.j[i];
             if (v == null)
             {
                 Eproto.PackNil(wb);
             }
             else
             {
                 v.Encode(wb);
             }
         }
     }
     if (this.k == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackMap(wb, this.k.Count);
         foreach (var i in this.k)
         {
             Eproto.PackString(wb, i.Key);
             if (i.Value == null)
             {
                 Eproto.PackNil(wb);
             }
             else
             {
                 i.Value.Encode(wb);
             }
         }
     }
     if (this.l == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackMap(wb, this.l.Count);
         foreach (var i in this.l)
         {
             Eproto.PackString(wb, i.Key);
             Eproto.PackBytes(wb, i.Value);
         }
     }
 }
Exemple #7
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.a);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.b);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDouble(rb, ref this.c);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDouble(rb, ref this.d);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.e);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackBytes(rb, ref this.f);
            if (--c <= 0)
            {
                return;
            }
            if (rb.NextIsNil())
            {
                rb.MoveNext();
            }
            else
            {
                this.g = new inner(); this.g.Decode(rb);
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackMap(rb);
                if (n < 0)
                {
                    this.h = null;
                }
                else
                {
                    this.h = new Dictionary <int, string>();
                    for (int i = 0; i < n; ++i)
                    {
                        int k = 0; string v = null;
                        Eproto.UnpackInteger(rb, ref k);
                        Eproto.UnpackString(rb, ref v);
                        this.h[k] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.i = null;
                }
                else
                {
                    this.i = new int[n];
                    for (int i = 0; i < n; ++i)
                    {
                        int v = 0;
                        Eproto.UnpackInteger(rb, ref v);
                        this.i[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.j = null;
                }
                else
                {
                    this.j = new inner[n];
                    for (int i = 0; i < n; ++i)
                    {
                        inner v = null;
                        if (rb.NextIsNil())
                        {
                            rb.MoveNext();
                        }
                        else
                        {
                            v = new inner(); v.Decode(rb);
                        }
                        this.j[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackMap(rb);
                if (n < 0)
                {
                    this.k = null;
                }
                else
                {
                    this.k = new Dictionary <string, inner>();
                    for (int i = 0; i < n; ++i)
                    {
                        string k = null; inner v = null;
                        Eproto.UnpackString(rb, ref k);
                        if (rb.NextIsNil())
                        {
                            rb.MoveNext();
                        }
                        else
                        {
                            v = new inner(); v.Decode(rb);
                        }
                        if (k != null)
                        {
                            this.k[k] = v;
                        }
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackMap(rb);
                if (n < 0)
                {
                    this.l = null;
                }
                else
                {
                    this.l = new Dictionary <string, byte[]>();
                    for (int i = 0; i < n; ++i)
                    {
                        string k = null; byte[] v = null;
                        Eproto.UnpackString(rb, ref k);
                        Eproto.UnpackBytes(rb, ref v);
                        if (k != null)
                        {
                            this.l[k] = v;
                        }
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }