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); }
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); }
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); }
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; }
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; }