struct JNINativeMethod {
char * name;
char * signature;
void * fnPtr;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | JNINativeMethod.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FNPTR
The struct member offsets. |
| public static final int | NAME
The struct member offsets. |
| public static final int | SIGNATURE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | JNINativeMethod(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static JNINativeMethod | |
| public static JNINativeMethod. | calloc(int
the buffer capacity capacity)Returns a new |
| public static JNINativeMethod | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static JNINativeMethod. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static JNINativeMethod | |
| public static JNINativeMethod | |
| public static JNINativeMethod. | |
| public static JNINativeMethod. | |
| protected JNINativeMethod | 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 JNINativeMethod | |
| public static JNINativeMethod | |
| public static JNINativeMethod. | create(int
the buffer capacity capacity)Returns a new |
| public static JNINativeMethod. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static JNINativeMethod | |
| public static JNINativeMethod. | |
| public long | |
| public JNINativeMethod | |
| public static JNINativeMethod | |
| public static JNINativeMethod. | malloc(int
the buffer capacity capacity)Returns a new |
| public static JNINativeMethod | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static JNINativeMethod. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static JNINativeMethod | |
| public static JNINativeMethod | |
| public static JNINativeMethod. | |
| public static JNINativeMethod. | |
| public ByteBuffer | |
| public JNINativeMethod | |
| public String | |
| public static long | |
| public static void | |
| public static ByteBuffer | |
| public static void | |
| public static String | |
| public static ByteBuffer | |
| public static void | |
| public static String | |
| public JNINativeMethod | set(ByteBuffer name, ByteBuffer signature, long fnPtr)
Initializes this struct with the specified values. |
| public JNINativeMethod | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public ByteBuffer | |
| public JNINativeMethod | |
| public String | |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FNPTR | back to summary |
|---|---|
| public static final int FNPTR The struct member offsets. | |
| NAME | back to summary |
|---|---|
| public static final int NAME The struct member offsets. | |
| SIGNATURE | back to summary |
|---|---|
| public static final int SIGNATURE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| JNINativeMethod | back to summary |
|---|---|
| protected JNINativeMethod(long address, ByteBuffer container) | |
| JNINativeMethod | back to summary |
|---|---|
| public JNINativeMethod(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static JNINativeMethod calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static JNINativeMethod. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static JNINativeMethod calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static JNINativeMethod. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static JNINativeMethod callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static JNINativeMethod callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static JNINativeMethod. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static JNINativeMethod. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected JNINativeMethod create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static JNINativeMethod create() Returns a new | |
| create | back to summary |
|---|---|
| public static JNINativeMethod create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static JNINativeMethod. Returns a new
| |
| create | back to summary |
|---|---|
| public static JNINativeMethod. Create a
| |
| createSafe | back to summary |
|---|---|
| public static JNINativeMethod createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static JNINativeMethod. Like
| |
| fnPtr | back to summary |
|---|---|
public long fnPtr()
| |
| fnPtr | back to summary |
|---|---|
| public JNINativeMethod fnPtr(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static JNINativeMethod malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static JNINativeMethod. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static JNINativeMethod malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static JNINativeMethod. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static JNINativeMethod mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static JNINativeMethod mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static JNINativeMethod. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static JNINativeMethod. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| name | back to summary |
|---|---|
public ByteBuffer name()
| |
| name | back to summary |
|---|---|
| public JNINativeMethod name(ByteBuffer value) Sets the address of the specified encoded string to the | |
| nameString | back to summary |
|---|---|
public String nameString()
| |
| nfnPtr | back to summary |
|---|---|
| public static long nfnPtr(long struct) Unsafe version of | |
| nfnPtr | back to summary |
|---|---|
| public static void nfnPtr(long struct, long value) Unsafe version of | |
| nname | back to summary |
|---|---|
| public static ByteBuffer nname(long struct) Unsafe version of | |
| nname | back to summary |
|---|---|
| public static void nname(long struct, ByteBuffer value) Unsafe version of | |
| nnameString | back to summary |
|---|---|
| public static String nnameString(long struct) Unsafe version of | |
| nsignature | back to summary |
|---|---|
| public static ByteBuffer nsignature(long struct) Unsafe version of | |
| nsignature | back to summary |
|---|---|
| public static void nsignature(long struct, ByteBuffer value) Unsafe version of | |
| nsignatureString | back to summary |
|---|---|
| public static String nsignatureString(long struct) Unsafe version of | |
| set | back to summary |
|---|---|
| public JNINativeMethod set(ByteBuffer name, ByteBuffer signature, long fnPtr) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public JNINativeMethod set(JNINativeMethod src) Copies the specified struct data to this struct.
| |
| signature | back to summary |
|---|---|
public ByteBuffer signature()
| |
| signature | back to summary |
|---|---|
| public JNINativeMethod signature(ByteBuffer value) Sets the address of the specified encoded string to the | |
| signatureString | back to summary |
|---|---|
public String signatureString()
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
JNINativeMethod structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final JNINativeMethod |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public JNINativeMethod. | |
| protected JNINativeMethod | |
| public ByteBuffer | |
| public JNINativeMethod. | |
| public String | |
| protected JNINativeMethod. | |
| public ByteBuffer | |
| public JNINativeMethod. | |
| public String |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final JNINativeMethod 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) | |
| fnPtr | back to summary |
|---|---|
public long fnPtr()
| |
| fnPtr | back to summary |
|---|---|
| public JNINativeMethod. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected JNINativeMethod getElementFactory() Implements abstract org.
| |
| name | back to summary |
|---|---|
public ByteBuffer name()
| |
| name | back to summary |
|---|---|
| public JNINativeMethod. Sets the address of the specified encoded string to the | |
| nameString | back to summary |
|---|---|
public String nameString()
| |
| self | back to summary |
|---|---|
| protected JNINativeMethod. Implements abstract org.
| |
| signature | back to summary |
|---|---|
public ByteBuffer signature()
| |
| signature | back to summary |
|---|---|
| public JNINativeMethod. Sets the address of the specified encoded string to the | |
| signatureString | back to summary |
|---|---|
public String signatureString()
| |