Package org.lwjgl.system.macosx
Class ObjCMethodDescription
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.macosx.ObjCMethodDescription
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class ObjCMethodDescription extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjCMethodDescription.Buffer
An array ofObjCMethodDescription
structs.
-
Constructor Summary
Constructors Constructor Description ObjCMethodDescription(java.nio.ByteBuffer container)
Creates aObjCMethodDescription
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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
callocStack()
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
mallocStack()
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 java.nio.ByteBuffer
ntypes(long struct)
Unsafe version oftypes()
.static java.lang.String
ntypesString(long struct)
Unsafe version oftypesString()
.int
sizeof()
java.nio.ByteBuffer
types()
the types of the method argumentsjava.lang.String
typesString()
the types of the method arguments
-
-
-
Constructor Detail
-
ObjCMethodDescription
public ObjCMethodDescription(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
name
public long name()
the name of the method at runtime
-
types, typesString
public java.nio.ByteBuffer types() public java.lang.String typesString()
the types of the method arguments
-
malloc
public static ObjCMethodDescription malloc()
Returns a newObjCMethodDescription
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static ObjCMethodDescription calloc()
Returns a newObjCMethodDescription
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static ObjCMethodDescription create()
Returns a newObjCMethodDescription
instance allocated withBufferUtils
.
-
create
public static ObjCMethodDescription create(long address)
Returns a newObjCMethodDescription
instance for the specified memory address.
-
createSafe
@Nullable public static ObjCMethodDescription createSafe(long address)
-
malloc
public static ObjCMethodDescription.Buffer malloc(int capacity)
Returns a newObjCMethodDescription.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static ObjCMethodDescription.Buffer calloc(int capacity)
Returns a newObjCMethodDescription.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static ObjCMethodDescription.Buffer create(int capacity)
Returns a newObjCMethodDescription.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static ObjCMethodDescription.Buffer create(long address, int capacity)
Create aObjCMethodDescription.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static ObjCMethodDescription.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ObjCMethodDescription mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static ObjCMethodDescription callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static ObjCMethodDescription mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static ObjCMethodDescription callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static ObjCMethodDescription.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static ObjCMethodDescription.Buffer callocStack(int capacity)
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
public static ObjCMethodDescription malloc(org.lwjgl.system.MemoryStack stack)
Returns a newObjCMethodDescription
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static ObjCMethodDescription calloc(org.lwjgl.system.MemoryStack stack)
Returns a newObjCMethodDescription
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static ObjCMethodDescription.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newObjCMethodDescription.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public 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.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nname
public static long nname(long struct)
Unsafe version ofname()
.
-
ntypes
public static java.nio.ByteBuffer ntypes(long struct)
Unsafe version oftypes()
.
-
ntypesString
public static java.lang.String ntypesString(long struct)
Unsafe version oftypesString()
.
-
-