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 classObjCMethodDescription.BufferAn array ofObjCMethodDescriptionstructs.
-
Constructor Summary
Constructors Constructor Description ObjCMethodDescription(java.nio.ByteBuffer container)Creates aObjCMethodDescriptioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ObjCMethodDescriptioncalloc()Returns a newObjCMethodDescriptioninstance allocated withmemCalloc.static ObjCMethodDescription.Buffercalloc(int capacity)Returns a newObjCMethodDescription.Bufferinstance allocated withmemCalloc.static ObjCMethodDescription.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newObjCMethodDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ObjCMethodDescriptioncalloc(org.lwjgl.system.MemoryStack stack)Returns a newObjCMethodDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ObjCMethodDescriptioncallocStack()Deprecated.static ObjCMethodDescription.BuffercallocStack(int capacity)Deprecated.static ObjCMethodDescription.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ObjCMethodDescriptioncallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static ObjCMethodDescriptioncreate()Returns a newObjCMethodDescriptioninstance allocated withBufferUtils.static ObjCMethodDescription.Buffercreate(int capacity)Returns a newObjCMethodDescription.Bufferinstance allocated withBufferUtils.static ObjCMethodDescriptioncreate(long address)Returns a newObjCMethodDescriptioninstance for the specified memory address.static ObjCMethodDescription.Buffercreate(long address, int capacity)Create aObjCMethodDescription.Bufferinstance at the specified memory.static ObjCMethodDescriptioncreateSafe(long address)static ObjCMethodDescription.BuffercreateSafe(long address, int capacity)static ObjCMethodDescriptionmalloc()Returns a newObjCMethodDescriptioninstance allocated withmemAlloc.static ObjCMethodDescription.Buffermalloc(int capacity)Returns a newObjCMethodDescription.Bufferinstance allocated withmemAlloc.static ObjCMethodDescription.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newObjCMethodDescription.Bufferinstance allocated on the specifiedMemoryStack.static ObjCMethodDescriptionmalloc(org.lwjgl.system.MemoryStack stack)Returns a newObjCMethodDescriptioninstance allocated on the specifiedMemoryStack.static ObjCMethodDescriptionmallocStack()Deprecated.static ObjCMethodDescription.BuffermallocStack(int capacity)Deprecated.static ObjCMethodDescription.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ObjCMethodDescriptionmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.longname()the name of the method at runtimestatic longnname(long struct)Unsafe version ofname().static java.nio.ByteBufferntypes(long struct)Unsafe version oftypes().static java.lang.StringntypesString(long struct)Unsafe version oftypesString().intsizeof()java.nio.ByteBuffertypes()the types of the method argumentsjava.lang.StringtypesString()the types of the method arguments
-
-
-
Constructor Detail
-
ObjCMethodDescription
public ObjCMethodDescription(java.nio.ByteBuffer container)
Creates aObjCMethodDescriptioninstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin 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 newObjCMethodDescriptioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ObjCMethodDescription calloc()
Returns a newObjCMethodDescriptioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ObjCMethodDescription create()
Returns a newObjCMethodDescriptioninstance allocated withBufferUtils.
-
create
public static ObjCMethodDescription create(long address)
Returns a newObjCMethodDescriptioninstance for the specified memory address.
-
createSafe
@Nullable public static ObjCMethodDescription createSafe(long address)
-
malloc
public static ObjCMethodDescription.Buffer malloc(int capacity)
Returns a newObjCMethodDescription.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ObjCMethodDescription.Buffer calloc(int capacity)
Returns a newObjCMethodDescription.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ObjCMethodDescription.Buffer create(int capacity)
Returns a newObjCMethodDescription.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ObjCMethodDescription.Buffer create(long address, int capacity)
Create aObjCMethodDescription.Bufferinstance 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 newObjCMethodDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ObjCMethodDescription calloc(org.lwjgl.system.MemoryStack stack)
Returns a newObjCMethodDescriptioninstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-