Jump to content
Excelsior Forums

jniuser

Members
  • Content count

    0
  • Joined

  • Last visited

    Never

Community Reputation

0 Neutral

About jniuser

  • Rank
    Newbie
  • Birthday 01/01/01
  1. How can I represent bitfield from the native structure in the definelayout()? e.g. C code : typedef { unsigned i:10; unsigned j:2; } my_struct; ----------------- java public MYSTRUCT extends Structure { int i; int j; public String defineLayout() { return "unsigned i:10, unsigned j:2"; } public MYSTRUCT() {} } This gives a runtime error Exception in thread "main" com.excelsior.xFunction.IllegalSignatureException: Ca n't parse signature record in 'JAVA_OTHER' class. 'unsigned i:10, unsigned j:2' ^ ',' or EOL char expected at com.excelsior.xFunction.xFunction.parseSignature(xFunction.java:209) at com.excelsior.xFunction.xFunction.<init>(xFunction.java:30) at sample9.main(sample9.java: Any help is appreciated. Thanks,
×