示例#1
0
 public override FTable read(FStore.Input input)
 {
     if (input == null)
     {
         m_size = 0; return(this);
     }
     m_size  = input.u2();
     m_table = new object[m_size];
     for (int i = 0; i < m_size; i++)
     {
         int   parent = input.u2();
         int   name   = input.u2();
         int   ret    = input.u2();
         int   paramn = input.u1();
         int[] x      = new int[3 + paramn];
         x[0] = parent;
         x[1] = name;
         x[2] = ret;
         for (int j = 0; j < paramn; ++j)
         {
             x[j + 3] = input.u2();
         }
         m_table[i] = new FTuple(x);
     }
     return(this);
 }
示例#2
0
 public override FTable read(FStore.Input input)
 {
     if (input == null)
     {
         m_size = 0; return(this);
     }
     m_size  = input.u2();
     m_table = new object[m_size];
     for (int i = 0; i < m_size; i++)
     {
         int[] x = { input.u2(), input.u2(), input.u2() };
         m_table[i] = new FTuple(x);
     }
     return(this);
 }
示例#3
0
        public override bool Equals(object obj)
        {
            FTuple x = (FTuple)obj;

            if (val.Length != x.val.Length)
            {
                return(false);
            }
            for (int i = 0; i < val.Length; ++i)
            {
                if (val[i] != x.val[i])
                {
                    return(false);
                }
            }
            return(true);
        }
示例#4
0
文件: FTable.cs 项目: nomit007/f4
 public override FTable read(FStore.Input input)
 {
     if (input == null) { m_size = 0; return this; }
     m_size = input.u2();
     m_table = new object[m_size];
     for (int i=0; i<m_size; i++)
     {
       int parent = input.u2();
       int name   = input.u2();
       int ret    = input.u2();
       int paramn = input.u1();
       int[] x = new int[3+paramn];
       x[0] = parent;
       x[1] = name;
       x[2] = ret;
       for (int j=0; j<paramn; ++j)
     x[j+3] = input.u2();
       m_table[i] = new FTuple(x);
     }
     return this;
 }
示例#5
0
文件: FTable.cs 项目: nomit007/f4
 public override FTable read(FStore.Input input)
 {
     if (input == null) { m_size = 0; return this; }
     m_size = input.u2();
     m_table = new object[m_size];
     for (int i=0; i<m_size; i++)
     {
       int[] x = { input.u2(), input.u2(), input.u2() };
       m_table[i] = new FTuple(x);
     }
     return this;
 }