Package org.lwjgl.system.macosx
Class ObjCMethodDescription
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<ObjCMethodDescription>
org.lwjgl.system.macosx.ObjCMethodDescription
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class ObjCMethodDescription
extends org.lwjgl.system.Struct<ObjCMethodDescription>
implements org.lwjgl.system.NativeResource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionObjCMethodDescription
(ByteBuffer container) Creates aObjCMethodDescription
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjCMethodDescription
calloc()
Returns a newObjCMethodDescription
instance allocated withmemCalloc
.static ObjCMethodDescription.Buffer
calloc
(int capacity) Returns a newObjCMethodDescription.Buffer
instance allocated withmemCalloc
.static ObjCMethodDescription.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newObjCMethodDescription.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ObjCMethodDescription
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newObjCMethodDescription
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ObjCMethodDescription
Deprecated.static ObjCMethodDescription.Buffer
callocStack
(int capacity) Deprecated.static ObjCMethodDescription.Buffer
callocStack
(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ObjCMethodDescription
callocStack
(org.lwjgl.system.MemoryStack stack) Deprecated.static ObjCMethodDescription
create()
Returns a newObjCMethodDescription
instance allocated withBufferUtils
.static ObjCMethodDescription.Buffer
create
(int capacity) Returns a newObjCMethodDescription.Buffer
instance allocated withBufferUtils
.static ObjCMethodDescription
create
(long address) Returns a newObjCMethodDescription
instance for the specified memory address.static ObjCMethodDescription.Buffer
create
(long address, int capacity) Create aObjCMethodDescription.Buffer
instance at the specified memory.static ObjCMethodDescription
createSafe
(long address) static ObjCMethodDescription.Buffer
createSafe
(long address, int capacity) static ObjCMethodDescription
malloc()
Returns a newObjCMethodDescription
instance allocated withmemAlloc
.static ObjCMethodDescription.Buffer
malloc
(int capacity) Returns a newObjCMethodDescription.Buffer
instance allocated withmemAlloc
.static ObjCMethodDescription.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newObjCMethodDescription.Buffer
instance allocated on the specifiedMemoryStack
.static ObjCMethodDescription
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newObjCMethodDescription
instance allocated on the specifiedMemoryStack
.static ObjCMethodDescription
Deprecated.static ObjCMethodDescription.Buffer
mallocStack
(int capacity) Deprecated.static ObjCMethodDescription.Buffer
mallocStack
(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ObjCMethodDescription
mallocStack
(org.lwjgl.system.MemoryStack stack) Deprecated.long
name()
the name of the method at runtimestatic long
nname
(long struct) Unsafe version ofname()
.static ByteBuffer
ntypes
(long struct) Unsafe version oftypes()
.static String
ntypesString
(long struct) Unsafe version oftypesString()
.int
sizeof()
types()
the types of the method argumentsthe types of the method argumentsMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NAME
public static final int NAMEThe struct member offsets. -
TYPES
public static final int TYPESThe struct member offsets.
-
-
Constructor Details
-
ObjCMethodDescription
Creates aObjCMethodDescription
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeof
in classorg.lwjgl.system.Struct<ObjCMethodDescription>
-
name
public long name()the name of the method at runtime -
types
the types of the method arguments -
typesString
the types of the method arguments -
malloc
Returns a newObjCMethodDescription
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newObjCMethodDescription
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newObjCMethodDescription
instance allocated withBufferUtils
. -
create
Returns a newObjCMethodDescription
instance for the specified memory address. -
createSafe
-
malloc
Returns a newObjCMethodDescription.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newObjCMethodDescription.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newObjCMethodDescription.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aObjCMethodDescription.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static ObjCMethodDescription.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static ObjCMethodDescription.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newObjCMethodDescription
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newObjCMethodDescription
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newObjCMethodDescription.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newObjCMethodDescription.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nname
public static long nname(long struct) Unsafe version ofname()
. -
ntypes
Unsafe version oftypes()
. -
ntypesString
Unsafe version oftypesString()
.
-