public class ObjCMethodDescription
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
name – the name of the method at runtimetypes – the types of the method arguments
struct objc_method_description {
SEL name;
char * types;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ObjCMethodDescription.Buffer
An array of
ObjCMethodDescription structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NAME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPES
The struct member offsets.
|
| Constructor and Description |
|---|
ObjCMethodDescription(java.nio.ByteBuffer container)
Creates a
ObjCMethodDescription instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ObjCMethodDescription |
calloc()
Returns a new
ObjCMethodDescription instance allocated with memCalloc. |
static ObjCMethodDescription.Buffer |
calloc(int capacity)
Returns a new
ObjCMethodDescription.Buffer instance allocated with memCalloc. |
static ObjCMethodDescription |
callocStack()
Returns a new
ObjCMethodDescription instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ObjCMethodDescription.Buffer |
callocStack(int capacity)
Returns a new
ObjCMethodDescription.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ObjCMethodDescription.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ObjCMethodDescription.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ObjCMethodDescription |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ObjCMethodDescription instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ObjCMethodDescription |
create()
Returns a new
ObjCMethodDescription instance allocated with BufferUtils. |
static ObjCMethodDescription.Buffer |
create(int capacity)
Returns a new
ObjCMethodDescription.Buffer instance allocated with BufferUtils. |
static ObjCMethodDescription |
create(long address)
Returns a new
ObjCMethodDescription instance for the specified memory address. |
static ObjCMethodDescription.Buffer |
create(long address,
int capacity)
Create a
ObjCMethodDescription.Buffer instance at the specified memory. |
static ObjCMethodDescription |
createSafe(long address)
|
static ObjCMethodDescription.Buffer |
createSafe(long address,
int capacity)
|
static ObjCMethodDescription |
malloc()
Returns a new
ObjCMethodDescription instance allocated with memAlloc. |
static ObjCMethodDescription.Buffer |
malloc(int capacity)
Returns a new
ObjCMethodDescription.Buffer instance allocated with memAlloc. |
static ObjCMethodDescription |
mallocStack()
Returns a new
ObjCMethodDescription instance allocated on the thread-local MemoryStack. |
static ObjCMethodDescription.Buffer |
mallocStack(int capacity)
Returns a new
ObjCMethodDescription.Buffer instance allocated on the thread-local MemoryStack. |
static ObjCMethodDescription.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ObjCMethodDescription.Buffer instance allocated on the specified MemoryStack. |
static ObjCMethodDescription |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ObjCMethodDescription instance allocated on the specified MemoryStack. |
long |
name()
Returns the value of the
name field. |
static long |
nname(long struct)
Unsafe version of
name(). |
static java.nio.ByteBuffer |
ntypes(long struct)
Unsafe version of
types(). |
static java.lang.String |
ntypesString(long struct)
Unsafe version of
typesString(). |
int |
sizeof() |
java.nio.ByteBuffer |
types()
Returns a
ByteBuffer view of the null-terminated string pointed to by the types field. |
java.lang.String |
typesString()
Decodes the null-terminated string pointed to by the
types field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NAME
public static final int TYPES
public ObjCMethodDescription(java.nio.ByteBuffer container)
ObjCMethodDescription instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long name()
name field.public java.nio.ByteBuffer types()
ByteBuffer view of the null-terminated string pointed to by the types field.public java.lang.String typesString()
types field.public static ObjCMethodDescription malloc()
ObjCMethodDescription instance allocated with memAlloc. The instance must be explicitly freed.public static ObjCMethodDescription calloc()
ObjCMethodDescription instance allocated with memCalloc. The instance must be explicitly freed.public static ObjCMethodDescription create()
ObjCMethodDescription instance allocated with BufferUtils.public static ObjCMethodDescription create(long address)
ObjCMethodDescription instance for the specified memory address.@Nullable public static ObjCMethodDescription createSafe(long address)
public static ObjCMethodDescription.Buffer malloc(int capacity)
ObjCMethodDescription.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ObjCMethodDescription.Buffer calloc(int capacity)
ObjCMethodDescription.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ObjCMethodDescription.Buffer create(int capacity)
ObjCMethodDescription.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ObjCMethodDescription.Buffer create(long address, int capacity)
ObjCMethodDescription.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ObjCMethodDescription.Buffer createSafe(long address, int capacity)
public static ObjCMethodDescription mallocStack()
ObjCMethodDescription instance allocated on the thread-local MemoryStack.public static ObjCMethodDescription callocStack()
ObjCMethodDescription instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ObjCMethodDescription mallocStack(org.lwjgl.system.MemoryStack stack)
ObjCMethodDescription instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ObjCMethodDescription callocStack(org.lwjgl.system.MemoryStack stack)
ObjCMethodDescription instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ObjCMethodDescription.Buffer mallocStack(int capacity)
ObjCMethodDescription.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ObjCMethodDescription.Buffer callocStack(int capacity)
ObjCMethodDescription.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ObjCMethodDescription.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ObjCMethodDescription.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ObjCMethodDescription.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ObjCMethodDescription.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nname(long struct)
name().public static java.nio.ByteBuffer ntypes(long struct)
types().public static java.lang.String ntypesString(long struct)
typesString().Copyright LWJGL. All Rights Reserved. License terms.