public class ObjCPropertyAttribute
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
name – the name of the attributevalue – the value of the attribute (usually empty)
struct objc_property_attribute_t {
char * name;
char * value;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ObjCPropertyAttribute.Buffer
An array of
ObjCPropertyAttribute structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NAME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VALUE
The struct member offsets.
|
| Constructor and Description |
|---|
ObjCPropertyAttribute(java.nio.ByteBuffer container)
Creates a
ObjCPropertyAttribute instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ObjCPropertyAttribute |
calloc()
Returns a new
ObjCPropertyAttribute instance allocated with memCalloc. |
static ObjCPropertyAttribute.Buffer |
calloc(int capacity)
Returns a new
ObjCPropertyAttribute.Buffer instance allocated with memCalloc. |
static ObjCPropertyAttribute |
callocStack()
Returns a new
ObjCPropertyAttribute instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ObjCPropertyAttribute.Buffer |
callocStack(int capacity)
Returns a new
ObjCPropertyAttribute.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ObjCPropertyAttribute.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ObjCPropertyAttribute.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ObjCPropertyAttribute |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ObjCPropertyAttribute instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ObjCPropertyAttribute |
create()
Returns a new
ObjCPropertyAttribute instance allocated with BufferUtils. |
static ObjCPropertyAttribute.Buffer |
create(int capacity)
Returns a new
ObjCPropertyAttribute.Buffer instance allocated with BufferUtils. |
static ObjCPropertyAttribute |
create(long address)
Returns a new
ObjCPropertyAttribute instance for the specified memory address. |
static ObjCPropertyAttribute.Buffer |
create(long address,
int capacity)
Create a
ObjCPropertyAttribute.Buffer instance at the specified memory. |
static ObjCPropertyAttribute |
createSafe(long address)
|
static ObjCPropertyAttribute.Buffer |
createSafe(long address,
int capacity)
|
static ObjCPropertyAttribute |
malloc()
Returns a new
ObjCPropertyAttribute instance allocated with memAlloc. |
static ObjCPropertyAttribute.Buffer |
malloc(int capacity)
Returns a new
ObjCPropertyAttribute.Buffer instance allocated with memAlloc. |
static ObjCPropertyAttribute |
mallocStack()
Returns a new
ObjCPropertyAttribute instance allocated on the thread-local MemoryStack. |
static ObjCPropertyAttribute.Buffer |
mallocStack(int capacity)
Returns a new
ObjCPropertyAttribute.Buffer instance allocated on the thread-local MemoryStack. |
static ObjCPropertyAttribute.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ObjCPropertyAttribute.Buffer instance allocated on the specified MemoryStack. |
static ObjCPropertyAttribute |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ObjCPropertyAttribute instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the null-terminated string pointed to by the name field. |
ObjCPropertyAttribute |
name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
name field. |
java.lang.String |
nameString()
Decodes the null-terminated string pointed to by the
name field. |
static java.nio.ByteBuffer |
nname(long struct)
Unsafe version of
name(). |
static void |
nname(long struct,
java.nio.ByteBuffer value)
Unsafe version of
name. |
static java.lang.String |
nnameString(long struct)
Unsafe version of
nameString(). |
static java.nio.ByteBuffer |
nvalue(long struct)
Unsafe version of
value(). |
static void |
nvalue(long struct,
java.nio.ByteBuffer value)
Unsafe version of
value. |
static java.lang.String |
nvalueString(long struct)
Unsafe version of
valueString(). |
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 be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
java.nio.ByteBuffer |
value()
Returns a
ByteBuffer view of the null-terminated string pointed to by the value field. |
ObjCPropertyAttribute |
value(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
value field. |
java.lang.String |
valueString()
Decodes the null-terminated string pointed to by the
value field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NAME
public static final int VALUE
public ObjCPropertyAttribute(java.nio.ByteBuffer container)
ObjCPropertyAttribute instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.ByteBuffer name()
ByteBuffer view of the null-terminated string pointed to by the name field.public java.lang.String nameString()
name field.public java.nio.ByteBuffer value()
ByteBuffer view of the null-terminated string pointed to by the value field.public java.lang.String valueString()
value field.public ObjCPropertyAttribute name(java.nio.ByteBuffer value)
name field.public ObjCPropertyAttribute value(java.nio.ByteBuffer value)
value field.public ObjCPropertyAttribute set(java.nio.ByteBuffer name, java.nio.ByteBuffer value)
public ObjCPropertyAttribute set(ObjCPropertyAttribute src)
src - the source structpublic static ObjCPropertyAttribute malloc()
ObjCPropertyAttribute instance allocated with memAlloc. The instance must be explicitly freed.public static ObjCPropertyAttribute calloc()
ObjCPropertyAttribute instance allocated with memCalloc. The instance must be explicitly freed.public static ObjCPropertyAttribute create()
ObjCPropertyAttribute instance allocated with BufferUtils.public static ObjCPropertyAttribute create(long address)
ObjCPropertyAttribute instance for the specified memory address.@Nullable public static ObjCPropertyAttribute createSafe(long address)
public static ObjCPropertyAttribute.Buffer malloc(int capacity)
ObjCPropertyAttribute.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ObjCPropertyAttribute.Buffer calloc(int capacity)
ObjCPropertyAttribute.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ObjCPropertyAttribute.Buffer create(int capacity)
ObjCPropertyAttribute.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ObjCPropertyAttribute.Buffer create(long address, int capacity)
ObjCPropertyAttribute.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ObjCPropertyAttribute.Buffer createSafe(long address, int capacity)
public static ObjCPropertyAttribute mallocStack()
ObjCPropertyAttribute instance allocated on the thread-local MemoryStack.public static ObjCPropertyAttribute callocStack()
ObjCPropertyAttribute instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ObjCPropertyAttribute mallocStack(org.lwjgl.system.MemoryStack stack)
ObjCPropertyAttribute instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ObjCPropertyAttribute callocStack(org.lwjgl.system.MemoryStack stack)
ObjCPropertyAttribute instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ObjCPropertyAttribute.Buffer mallocStack(int capacity)
ObjCPropertyAttribute.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ObjCPropertyAttribute.Buffer callocStack(int capacity)
ObjCPropertyAttribute.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ObjCPropertyAttribute.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ObjCPropertyAttribute.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ObjCPropertyAttribute.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ObjCPropertyAttribute.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.ByteBuffer nname(long struct)
name().public static java.lang.String nnameString(long struct)
nameString().public static java.nio.ByteBuffer nvalue(long struct)
value().public static java.lang.String nvalueString(long struct)
valueString().public static void nname(long struct,
java.nio.ByteBuffer value)
name.public static void nvalue(long struct,
java.nio.ByteBuffer value)
value.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.