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, NativeResource, Pointer
public class ObjCMethodDescription extends Struct
Defines a method.Member documentation
name– the name of the method at runtimetypes– the types of the method arguments
Layout
struct objc_method_description { SEL name; char * types; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classObjCMethodDescription.BufferAn array ofObjCMethodDescriptionstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 Modifier and Type Method and Description static ObjCMethodDescriptioncalloc()Returns a newObjCMethodDescriptioninstance allocated withmemCalloc.static ObjCMethodDescription.Buffercalloc(int capacity)Returns a newObjCMethodDescription.Bufferinstance allocated withmemCalloc.static ObjCMethodDescriptioncallocStack()Returns a newObjCMethodDescriptioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static ObjCMethodDescription.BuffercallocStack(int capacity)Returns a newObjCMethodDescription.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static ObjCMethodDescription.BuffercallocStack(int capacity, MemoryStack stack)Returns a newObjCMethodDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ObjCMethodDescriptioncallocStack(MemoryStack stack)Returns a newObjCMethodDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 ornullif the address isNULL.static ObjCMethodDescription.Buffercreate(long address, int capacity)Create aObjCMethodDescription.Bufferinstance at the specified memory.static ObjCMethodDescriptionmalloc()Returns a newObjCMethodDescriptioninstance allocated withmemAlloc.static ObjCMethodDescription.Buffermalloc(int capacity)Returns a newObjCMethodDescription.Bufferinstance allocated withmemAlloc.static ObjCMethodDescriptionmallocStack()Returns a newObjCMethodDescriptioninstance allocated on the thread-localMemoryStack.static ObjCMethodDescription.BuffermallocStack(int capacity)Returns a newObjCMethodDescription.Bufferinstance allocated on the thread-localMemoryStack.static ObjCMethodDescription.BuffermallocStack(int capacity, MemoryStack stack)Returns a newObjCMethodDescription.Bufferinstance allocated on the specifiedMemoryStack.static ObjCMethodDescriptionmallocStack(MemoryStack stack)Returns a newObjCMethodDescriptioninstance allocated on the specifiedMemoryStack.longname()Returns the value of thenamefield.intsizeof()Returns thesizeof(struct).java.nio.ByteBuffertypes()Returns aByteBufferview of the null-terminated string pointed to by thetypesfield.java.lang.StringtypesString()Decodes the null-terminated string pointed to by thetypesfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(struct).
-
name
public long name()
Returns the value of thenamefield.
-
types
public java.nio.ByteBuffer types()
Returns aByteBufferview of the null-terminated string pointed to by thetypesfield.
-
typesString
public java.lang.String typesString()
Decodes the null-terminated string pointed to by thetypesfield.
-
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 ornullif the address isNULL.
-
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
-
mallocStack
public static ObjCMethodDescription mallocStack()
Returns a newObjCMethodDescriptioninstance allocated on the thread-localMemoryStack.
-
callocStack
public static ObjCMethodDescription callocStack()
Returns a newObjCMethodDescriptioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static ObjCMethodDescription mallocStack(MemoryStack stack)
Returns a newObjCMethodDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static ObjCMethodDescription callocStack(MemoryStack stack)
Returns a newObjCMethodDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static ObjCMethodDescription.Buffer mallocStack(int capacity)
Returns a newObjCMethodDescription.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static ObjCMethodDescription.Buffer callocStack(int capacity)
Returns a newObjCMethodDescription.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static ObjCMethodDescription.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newObjCMethodDescription.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static ObjCMethodDescription.Buffer callocStack(int capacity, 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
-
-