forked from clj-python/libpython-clj
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyMemberDef.java
More file actions
24 lines (18 loc) · 754 Bytes
/
Copy pathPyMemberDef.java
File metadata and controls
24 lines (18 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package libpython_clj.jna;
import com.sun.jna.*;
import java.util.*;
public class PyMemberDef extends Structure {
// We keep these as pointers because the memberdef has to live forever
// so we have to manually ensure the name and doc ptrs also live forever.
public Pointer name;
public int type;
public long offset;
public int flags;
public Pointer doc;
public static class ByReference extends PyMemberDef implements Structure.ByReference {}
public static class ByValue extends PyMemberDef implements Structure.ByValue {}
public PyMemberDef () {}
public PyMemberDef (Pointer p ) { super(p); read(); }
protected List getFieldOrder() { return Arrays.asList(new String[]
{ "name", "type", "offset", "flags", "doc" }); }
}