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 class
ObjCPropertyAttribute.Buffer
An array ofObjCPropertyAttribute
structs.
-
Constructor Summary
Constructors Constructor Description ObjCPropertyAttribute(java.nio.ByteBuffer container)
Creates aObjCPropertyAttribute
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 ObjCPropertyAttribute
calloc()
Returns a newObjCPropertyAttribute
instance allocated withmemCalloc
.static ObjCPropertyAttribute.Buffer
calloc(int capacity)
Returns a newObjCPropertyAttribute.Buffer
instance allocated withmemCalloc
.static ObjCPropertyAttribute.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttribute.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ObjCPropertyAttribute
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttribute
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ObjCPropertyAttribute
callocStack()
Deprecated.static ObjCPropertyAttribute.Buffer
callocStack(int capacity)
Deprecated.static ObjCPropertyAttribute.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static ObjCPropertyAttribute
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static ObjCPropertyAttribute
create()
Returns a newObjCPropertyAttribute
instance allocated withBufferUtils
.static ObjCPropertyAttribute.Buffer
create(int capacity)
Returns a newObjCPropertyAttribute.Buffer
instance allocated withBufferUtils
.static ObjCPropertyAttribute
create(long address)
Returns a newObjCPropertyAttribute
instance for the specified memory address.static ObjCPropertyAttribute.Buffer
create(long address, int capacity)
Create aObjCPropertyAttribute.Buffer
instance at the specified memory.static ObjCPropertyAttribute
createSafe(long address)
static ObjCPropertyAttribute.Buffer
createSafe(long address, int capacity)
static ObjCPropertyAttribute
malloc()
Returns a newObjCPropertyAttribute
instance allocated withmemAlloc
.static ObjCPropertyAttribute.Buffer
malloc(int capacity)
Returns a newObjCPropertyAttribute.Buffer
instance allocated withmemAlloc
.static ObjCPropertyAttribute.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttribute.Buffer
instance allocated on the specifiedMemoryStack
.static ObjCPropertyAttribute
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttribute
instance allocated on the specifiedMemoryStack
.static ObjCPropertyAttribute
mallocStack()
Deprecated.static ObjCPropertyAttribute.Buffer
mallocStack(int capacity)
Deprecated.static ObjCPropertyAttribute.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static ObjCPropertyAttribute
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.java.nio.ByteBuffer
name()
the name of the attributeObjCPropertyAttribute
name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thename()
field.java.lang.String
nameString()
the name of the attributestatic java.nio.ByteBuffer
nname(long struct)
Unsafe version ofname()
.static void
nname(long struct, java.nio.ByteBuffer value)
Unsafe version ofname
.static java.lang.String
nnameString(long struct)
Unsafe version ofnameString()
.static java.nio.ByteBuffer
nvalue(long struct)
Unsafe version ofvalue()
.static void
nvalue(long struct, java.nio.ByteBuffer value)
Unsafe version ofvalue
.static java.lang.String
nvalueString(long struct)
Unsafe version ofvalueString()
.ObjCPropertyAttribute
set(java.nio.ByteBuffer name, java.nio.ByteBuffer value)
Initializes this struct with the specified values.ObjCPropertyAttribute
set(ObjCPropertyAttribute src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.java.nio.ByteBuffer
value()
the value of the attribute (usually empty)ObjCPropertyAttribute
value(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thevalue()
field.java.lang.String
valueString()
the value of the attribute (usually empty)
-
-
-
Constructor Detail
-
ObjCPropertyAttribute
public ObjCPropertyAttribute(java.nio.ByteBuffer container)
Creates aObjCPropertyAttribute
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, 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 newObjCPropertyAttribute
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static ObjCPropertyAttribute calloc()
Returns a newObjCPropertyAttribute
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static ObjCPropertyAttribute create()
Returns a newObjCPropertyAttribute
instance allocated withBufferUtils
.
-
create
public static ObjCPropertyAttribute create(long address)
Returns a newObjCPropertyAttribute
instance for the specified memory address.
-
createSafe
@Nullable public static ObjCPropertyAttribute createSafe(long address)
-
malloc
public static ObjCPropertyAttribute.Buffer malloc(int capacity)
Returns a newObjCPropertyAttribute.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static ObjCPropertyAttribute.Buffer calloc(int capacity)
Returns a newObjCPropertyAttribute.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static ObjCPropertyAttribute.Buffer create(int capacity)
Returns a newObjCPropertyAttribute.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static ObjCPropertyAttribute.Buffer create(long address, int capacity)
Create aObjCPropertyAttribute.Buffer
instance 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 newObjCPropertyAttribute
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static ObjCPropertyAttribute calloc(org.lwjgl.system.MemoryStack stack)
Returns a newObjCPropertyAttribute
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance 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.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 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
-
-