Beispiel #1
0
  FuncDesc(JIStruct filledStruct) {
    if (filledStruct == null) {
      values = null;
      memberId = -1;
      lprgscode = null;
      lprgelemdescParam = null;
      funcKind = -1;
      invokeKind = -1;
      callConv = -1;
      cParams = -1;
      cParamsOpt = -1;
      oVft = -1;
      cScodes = -1;
      elemdescFunc = null;
      wFuncFlags = -1;
      return;
    }
    values = filledStruct;
    memberId = ((Integer) values.getMember(0)).intValue();
    lprgscode = (JIPointer) values.getMember(1);
    JIPointer ptr = (JIPointer) values.getMember(2);
    JIArray arrayOfElemDesc = null;
    if (!ptr.isNull()) {
      JIArray arry = (JIArray) ptr.getReferent();
      Object[] obj = (Object[]) arry.getArrayInstance();
      //			ElemDesc[] arry2 = new ElemDesc[obj.length];
      //			for (int i = 0; i < obj.length; i++)
      //			{
      //				arry2[i] = new ElemDesc((JIStruct)obj[i]);
      //			}

      //			arrayOfElemDesc = new JIArray(arry2);
      arrayOfElemDesc = new JIArray(obj);
    }

    lprgelemdescParam = new JIPointer(arrayOfElemDesc);
    funcKind = ((Integer) values.getMember(3)).intValue();
    invokeKind = ((Integer) values.getMember(4)).intValue();
    callConv = ((Integer) values.getMember(5)).intValue();
    cParams = ((Short) values.getMember(6)).shortValue();
    cParamsOpt = ((Short) values.getMember(7)).shortValue();
    oVft = ((Short) values.getMember(8)).shortValue();
    cScodes = ((Short) values.getMember(9)).shortValue();
    elemdescFunc = new ElemDesc(((JIStruct) values.getMember(10)));
    wFuncFlags = ((Short) values.getMember(11)).shortValue();
  }
Beispiel #2
0
 FuncDesc(JIPointer values) {
   this(values.isNull() ? null : (JIStruct) values.getReferent());
 }