Package org.lwjgl.system.macosx
Class ObjCPropertyAttribute
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.macosx.ObjCPropertyAttribute
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ObjCPropertyAttribute extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjCPropertyAttribute.BufferAn array ofObjCPropertyAttributestructs.
-
Constructor Summary
Constructors Constructor Description ObjCPropertyAttribute(java.nio.ByteBuffer container)Creates aObjCPropertyAttributeinstance 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 ObjCPropertyAttributecalloc()Returns a newObjCPropertyAttributeinstance allocated withmemCalloc.static ObjCPropertyAttribute.Buffercalloc(int capacity)Returns a newObjCPropertyAttribute.Bufferinstance allocated withmemCalloc.static ObjCPropertyAttribute.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newObjCPropertyAttribute.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ObjCPropertyAttributecalloc(org.lwjgl.system.MemoryStack stack)Returns a newObjCPropertyAttributeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ObjCPropertyAttributecallocStack()Deprecated.static ObjCPropertyAttribute.BuffercallocStack(int capacity)Deprecated.static ObjCPropertyAttribute.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ObjCPropertyAttributecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static ObjCPropertyAttributecreate()Returns a newObjCPropertyAttributeinstance allocated withBufferUtils.static ObjCPropertyAttribute.Buffercreate(int capacity)Returns a newObjCPropertyAttribute.Bufferinstance allocated withBufferUtils.static ObjCPropertyAttributecreate(long address)Returns a newObjCPropertyAttributeinstance for the specified memory address.static ObjCPropertyAttribute.Buffercreate(long address, int capacity)Create aObjCPropertyAttribute.Bufferinstance at the specified memory.static ObjCPropertyAttributecreateSafe(long address)static ObjCPropertyAttribute.BuffercreateSafe(long address, int capacity)static ObjCPropertyAttributemalloc()Returns a newObjCPropertyAttributeinstance allocated withmemAlloc.static ObjCPropertyAttribute.Buffermalloc(int capacity)Returns a newObjCPropertyAttribute.Bufferinstance allocated withmemAlloc.static ObjCPropertyAttribute.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newObjCPropertyAttribute.Bufferinstance allocated on the specifiedMemoryStack.static ObjCPropertyAttributemalloc(org.lwjgl.system.MemoryStack stack)Returns a newObjCPropertyAttributeinstance allocated on the specifiedMemoryStack.static ObjCPropertyAttributemallocStack()Deprecated.static ObjCPropertyAttribute.BuffermallocStack(int capacity)Deprecated.static ObjCPropertyAttribute.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ObjCPropertyAttributemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.ByteBuffername()the name of the attributeObjCPropertyAttributename(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thename()field.java.lang.StringnameString()the name of the attributestatic java.nio.ByteBuffernname(long struct)Unsafe version ofname().static voidnname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static java.nio.ByteBuffernvalue(long struct)Unsafe version ofvalue().static voidnvalue(long struct, java.nio.ByteBuffer value)Unsafe version ofvalue.static java.lang.StringnvalueString(long struct)Unsafe version ofvalueString().ObjCPropertyAttributeset(java.nio.ByteBuffer name, java.nio.ByteBuffer value)Initializes this struct with the specified values.ObjCPropertyAttributeset(ObjCPropertyAttribute src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.java.nio.ByteBuffervalue()the value of the attribute (usually empty)ObjCPropertyAttributevalue(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thevalue()field.java.lang.StringvalueString()the value of the attribute (usually empty)
-
-
-
Constructor Detail
-
ObjCPropertyAttribute
public ObjCPropertyAttribute(java.nio.ByteBuffer container)
Creates aObjCPropertyAttributeinstance 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, nameString
public java.nio.ByteBuffer name() public java.lang.String nameString()
the name of the attribute
-
value, valueString
public java.nio.ByteBuffer value() public java.lang.String valueString()
the value of the attribute (usually empty)
-
name
public ObjCPropertyAttribute name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thename()field.
-
value
public ObjCPropertyAttribute value(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thevalue()field.
-
set
public ObjCPropertyAttribute set(java.nio.ByteBuffer name, java.nio.ByteBuffer value)
Initializes this struct with the specified values.
-
set
public ObjCPropertyAttribute set(ObjCPropertyAttribute src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static ObjCPropertyAttribute malloc()
Returns a newObjCPropertyAttributeinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ObjCPropertyAttribute calloc()
Returns a newObjCPropertyAttributeinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ObjCPropertyAttribute create()
Returns a newObjCPropertyAttributeinstance allocated withBufferUtils.
-
create
public static ObjCPropertyAttribute create(long address)
Returns a newObjCPropertyAttributeinstance for the specified memory address.
-
createSafe
@Nullable public static ObjCPropertyAttribute createSafe(long address)
-
malloc
public static ObjCPropertyAttribute.Buffer malloc(int capacity)
Returns a newObjCPropertyAttribute.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ObjCPropertyAttribute.Buffer calloc(int capacity)
Returns a newObjCPropertyAttribute.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ObjCPropertyAttribute.Buffer create(int capacity)
Returns a newObjCPropertyAttribute.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ObjCPropertyAttribute.Buffer create(long address, int capacity)
Create aObjCPropertyAttribute.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ObjCPropertyAttribute.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ObjCPropertyAttribute mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ObjCPropertyAttribute callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ObjCPropertyAttribute mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ObjCPropertyAttribute callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ObjCPropertyAttribute.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ObjCPropertyAttribute.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static ObjCPropertyAttribute.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 ObjCPropertyAttribute.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static ObjCPropertyAttribute malloc(org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttributeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ObjCPropertyAttribute calloc(org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttributeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ObjCPropertyAttribute.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttribute.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ObjCPropertyAttribute.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttribute.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 java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
nvalue
public static java.nio.ByteBuffer nvalue(long struct)
Unsafe version ofvalue().
-
nvalueString
public static java.lang.String nvalueString(long struct)
Unsafe version ofvalueString().
-
nname
public static void nname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.
-
nvalue
public static void nvalue(long struct, java.nio.ByteBuffer value)Unsafe version ofvalue.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-