struct ffi_cif {
ffi_abi abi;
unsigned nargs;
ffi_type ** arg_types;
ffi_type * rtype;
unsigned bytes;
unsigned flags;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | FFICIF.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ABI
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ARG_TYPES
The struct member offsets. |
| public static final int | BYTES
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | NARGS
The struct member offsets. |
| public static final int | RTYPE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | FFICIF(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public PointerBuffer | |
| public int | |
| public static FFICIF | |
| public static FFICIF. | calloc(int
the buffer capacity capacity)Returns a new |
| public static FFICIF | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static FFICIF. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected FFICIF | 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 FFICIF | |
| public static FFICIF | |
| public static FFICIF. | create(int
the buffer capacity capacity)Returns a new |
| public static FFICIF. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static FFICIF | |
| public static FFICIF. | |
| public int | |
| public static FFICIF | |
| public static FFICIF. | malloc(int
the buffer capacity capacity)Returns a new |
| public static FFICIF | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static FFICIF. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static PointerBuffer | |
| public int | |
| public static int | |
| public static int | |
| public static int | |
| public static FFIType | |
| private static native int | |
| public FFIType | |
| public int |
| ABI | back to summary |
|---|---|
| public static final int ABI The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ARG_TYPES | back to summary |
|---|---|
| public static final int ARG_TYPES The struct member offsets. | |
| BYTES | back to summary |
|---|---|
| public static final int BYTES The struct member offsets. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| NARGS | back to summary |
|---|---|
| public static final int NARGS The struct member offsets. | |
| RTYPE | back to summary |
|---|---|
| public static final int RTYPE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| FFICIF | back to summary |
|---|---|
| protected FFICIF(long address, ByteBuffer container) | |
| FFICIF | back to summary |
|---|---|
| public FFICIF(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| abi | back to summary |
|---|---|
public int abi()
| |
| arg_types | back to summary |
|---|---|
public PointerBuffer arg_types(int capacity)
| |
| bytes | back to summary |
|---|---|
public int bytes()
| |
| calloc | back to summary |
|---|---|
| public static FFICIF calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static FFICIF. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static FFICIF calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static FFICIF. Returns a new
| |
| create | back to summary |
|---|---|
| protected FFICIF create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static FFICIF create() Returns a new | |
| create | back to summary |
|---|---|
| public static FFICIF create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static FFICIF. Returns a new
| |
| create | back to summary |
|---|---|
| public static FFICIF. Create a
| |
| createSafe | back to summary |
|---|---|
| public static FFICIF createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static FFICIF. Like
| |
| flags | back to summary |
|---|---|
public int flags()
| |
| malloc | back to summary |
|---|---|
| public static FFICIF malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static FFICIF. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static FFICIF malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static FFICIF. Returns a new
| |
| nabi | back to summary |
|---|---|
| public static int nabi(long struct) Unsafe version of | |
| narg_types | back to summary |
|---|---|
| public static PointerBuffer narg_types(long struct, int capacity) Unsafe version of | |
| nargs | back to summary |
|---|---|
public int nargs()
| |
| nbytes | back to summary |
|---|---|
| public static int nbytes(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nnargs | back to summary |
|---|---|
| public static int nnargs(long struct) Unsafe version of | |
| nrtype | back to summary |
|---|---|
| public static FFIType nrtype(long struct) Unsafe version of | |
| offsets | back to summary |
|---|---|
| private static native int offsets(long buffer) | |
| rtype | back to summary |
|---|---|
public FFIType rtype()
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
FFICIF structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final FFICIF |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public PointerBuffer | |
| public int | |
| public int | |
| protected FFICIF | |
| public int | |
| public FFIType | |
| protected FFICIF. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final FFICIF 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) | |
| abi | back to summary |
|---|---|
public int abi()
| |
| arg_types | back to summary |
|---|---|
public PointerBuffer arg_types(int capacity)
| |
| bytes | back to summary |
|---|---|
public int bytes()
| |
| flags | back to summary |
|---|---|
public int flags()
| |
| getElementFactory | back to summary |
|---|---|
| protected FFICIF getElementFactory() Implements abstract org.
| |
| nargs | back to summary |
|---|---|
public int nargs()
| |
| rtype | back to summary |
|---|---|
public FFIType rtype()
| |
| self | back to summary |
|---|---|
| protected FFICIF. Implements abstract org.
| |