struct ffi_closure {
ffi_cif * cif;
void (*)(ffi_cif*,void*,void**,void*) fun;
void * user_data;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | FFIClosure.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CIF
The struct member offsets. |
| public static final int | FUN
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | USER_DATA
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | FFIClosure(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static FFIClosure | |
| public static FFIClosure. | calloc(int
the buffer capacity capacity)Returns a new |
| public static FFIClosure | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static FFIClosure. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public FFICIF | |
| protected FFIClosure | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static FFIClosure | |
| public static FFIClosure | |
| public static FFIClosure. | create(int
the buffer capacity capacity)Returns a new |
| public static FFIClosure. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static FFIClosure | |
| public static FFIClosure. | |
| public long | |
| public static FFIClosure | |
| public static FFIClosure. | malloc(int
the buffer capacity capacity)Returns a new |
| public static FFIClosure | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static FFIClosure. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static FFICIF | |
| public static long | |
| public static long | |
| private static native int | |
| public int | |
| public long |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CIF | back to summary |
|---|---|
| public static final int CIF The struct member offsets. | |
| FUN | back to summary |
|---|---|
| public static final int FUN The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| USER_DATA | back to summary |
|---|---|
| public static final int USER_DATA The struct member offsets. | |
| FFIClosure | back to summary |
|---|---|
| protected FFIClosure(long address, ByteBuffer container) | |
| FFIClosure | back to summary |
|---|---|
| public FFIClosure(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static FFIClosure calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static FFIClosure. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static FFIClosure calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static FFIClosure. Returns a new
| |
| cif | back to summary |
|---|---|
| public FFICIF cif() a pointer to an
| |
| create | back to summary |
|---|---|
| protected FFIClosure create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static FFIClosure create() Returns a new | |
| create | back to summary |
|---|---|
| public static FFIClosure create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static FFIClosure. Returns a new
| |
| create | back to summary |
|---|---|
| public static FFIClosure. Create a
| |
| createSafe | back to summary |
|---|---|
| public static FFIClosure createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static FFIClosure. Like
| |
| fun | back to summary |
|---|---|
| public long fun() a pointer to a function
| |
| malloc | back to summary |
|---|---|
| public static FFIClosure malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static FFIClosure. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static FFIClosure malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static FFIClosure. Returns a new
| |
| ncif | back to summary |
|---|---|
| public static FFICIF ncif(long struct) Unsafe version of | |
| nfun | back to summary |
|---|---|
| public static long nfun(long struct) Unsafe version of | |
| nuser_data | back to summary |
|---|---|
| public static long nuser_data(long struct) Unsafe version of | |
| offsets | back to summary |
|---|---|
| private static native int offsets(long buffer) | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| user_data | back to summary |
|---|---|
| public long user_data() a pointer to user-specified data
| |
FFIClosure structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final FFIClosure |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public FFICIF | |
| public long | |
| protected FFIClosure | |
| protected FFIClosure. | |
| public long |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final FFIClosure ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| cif | back to summary |
|---|---|
public FFICIF cif()
| |
| fun | back to summary |
|---|---|
public long fun()
| |
| getElementFactory | back to summary |
|---|---|
| protected FFIClosure getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected FFIClosure. Implements abstract org.
| |
| user_data | back to summary |
|---|---|
public long user_data()
| |