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 implements NativeResource
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 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 Description static intALIGNOFThe struct alignment in bytes.static intNAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPESThe struct member offsets.-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
-
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 Modifier and Type Method 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.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 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.static 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()Returnssizeof(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 interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
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:StructReturnssizeof(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.
-
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
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
-
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().
-
-