public class EXRAttribute
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct EXRAttribute {
char name[256];
char type[256];
unsigned char * value;
int size;
char[4];
}| Modifier and Type | Class and Description |
|---|---|
static class |
EXRAttribute.Buffer
An array of
EXRAttribute structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NAME
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
static int |
VALUE
The struct member offsets.
|
| Constructor and Description |
|---|
EXRAttribute(java.nio.ByteBuffer container)
Creates a
EXRAttribute instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static EXRAttribute |
calloc()
Returns a new
EXRAttribute instance allocated with memCalloc. |
static EXRAttribute.Buffer |
calloc(int capacity)
Returns a new
EXRAttribute.Buffer instance allocated with memCalloc. |
static EXRAttribute |
callocStack()
Returns a new
EXRAttribute instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static EXRAttribute.Buffer |
callocStack(int capacity)
Returns a new
EXRAttribute.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static EXRAttribute.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
EXRAttribute.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static EXRAttribute |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
EXRAttribute instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static EXRAttribute |
create()
Returns a new
EXRAttribute instance allocated with BufferUtils. |
static EXRAttribute.Buffer |
create(int capacity)
Returns a new
EXRAttribute.Buffer instance allocated with BufferUtils. |
static EXRAttribute |
create(long address)
Returns a new
EXRAttribute instance for the specified memory address. |
static EXRAttribute.Buffer |
create(long address,
int capacity)
Create a
EXRAttribute.Buffer instance at the specified memory. |
static EXRAttribute |
createSafe(long address)
|
static EXRAttribute.Buffer |
createSafe(long address,
int capacity)
|
static EXRAttribute |
malloc()
Returns a new
EXRAttribute instance allocated with memAlloc. |
static EXRAttribute.Buffer |
malloc(int capacity)
Returns a new
EXRAttribute.Buffer instance allocated with memAlloc. |
static EXRAttribute |
mallocStack()
Returns a new
EXRAttribute instance allocated on the thread-local MemoryStack. |
static EXRAttribute.Buffer |
mallocStack(int capacity)
Returns a new
EXRAttribute.Buffer instance allocated on the thread-local MemoryStack. |
static EXRAttribute.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
EXRAttribute.Buffer instance allocated on the specified MemoryStack. |
static EXRAttribute |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
EXRAttribute instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the name field. |
EXRAttribute |
name(java.nio.ByteBuffer value)
Copies the specified encoded string to the
name field. |
java.lang.String |
nameString()
Decodes the null-terminated string stored in 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 int |
nsize(long struct)
Unsafe version of
size(). |
static void |
nsize(long struct,
int value)
Sets the specified value to the
size field of the specified struct. |
static java.nio.ByteBuffer |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
java.nio.ByteBuffer value)
Unsafe version of
type. |
static java.lang.String |
ntypeString(long struct)
Unsafe version of
typeString(). |
static java.nio.ByteBuffer |
nvalue(long struct)
Unsafe version of
value. |
static void |
nvalue(long struct,
java.nio.ByteBuffer value)
Unsafe version of
value. |
EXRAttribute |
set(java.nio.ByteBuffer name,
java.nio.ByteBuffer type,
java.nio.ByteBuffer value)
Initializes this struct with the specified values.
|
EXRAttribute |
set(EXRAttribute src)
Copies the specified struct data to this struct.
|
int |
size()
Returns the value of the
size field. |
int |
sizeof() |
java.nio.ByteBuffer |
type()
Returns a
ByteBuffer view of the type field. |
EXRAttribute |
type(java.nio.ByteBuffer value)
Copies the specified encoded string to the
type field. |
java.lang.String |
typeString()
Decodes the null-terminated string stored in the
type field. |
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 data pointed to by the value field. |
EXRAttribute |
value(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the value field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NAME
public static final int TYPE
public static final int VALUE
public static final int SIZE
public EXRAttribute(java.nio.ByteBuffer container)
EXRAttribute 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 name field.public java.lang.String nameString()
name field.public java.nio.ByteBuffer type()
ByteBuffer view of the type field.public java.lang.String typeString()
type field.@Nullable public java.nio.ByteBuffer value()
ByteBuffer view of the data pointed to by the value field.public int size()
size field.public EXRAttribute name(java.nio.ByteBuffer value)
name field.public EXRAttribute type(java.nio.ByteBuffer value)
type field.public EXRAttribute value(@Nullable java.nio.ByteBuffer value)
ByteBuffer to the value field.public EXRAttribute set(java.nio.ByteBuffer name, java.nio.ByteBuffer type, @Nullable java.nio.ByteBuffer value)
public EXRAttribute set(EXRAttribute src)
src - the source structpublic static EXRAttribute malloc()
EXRAttribute instance allocated with memAlloc. The instance must be explicitly freed.public static EXRAttribute calloc()
EXRAttribute instance allocated with memCalloc. The instance must be explicitly freed.public static EXRAttribute create()
EXRAttribute instance allocated with BufferUtils.public static EXRAttribute create(long address)
EXRAttribute instance for the specified memory address.@Nullable public static EXRAttribute createSafe(long address)
public static EXRAttribute.Buffer malloc(int capacity)
EXRAttribute.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static EXRAttribute.Buffer calloc(int capacity)
EXRAttribute.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static EXRAttribute.Buffer create(int capacity)
EXRAttribute.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static EXRAttribute.Buffer create(long address, int capacity)
EXRAttribute.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static EXRAttribute.Buffer createSafe(long address, int capacity)
public static EXRAttribute mallocStack()
EXRAttribute instance allocated on the thread-local MemoryStack.public static EXRAttribute callocStack()
EXRAttribute instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static EXRAttribute mallocStack(org.lwjgl.system.MemoryStack stack)
EXRAttribute instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static EXRAttribute callocStack(org.lwjgl.system.MemoryStack stack)
EXRAttribute instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static EXRAttribute.Buffer mallocStack(int capacity)
EXRAttribute.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static EXRAttribute.Buffer callocStack(int capacity)
EXRAttribute.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static EXRAttribute.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
EXRAttribute.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static EXRAttribute.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
EXRAttribute.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 ntype(long struct)
type().public static java.lang.String ntypeString(long struct)
typeString().@Nullable public static java.nio.ByteBuffer nvalue(long struct)
value.public static int nsize(long struct)
size().public static void nname(long struct,
java.nio.ByteBuffer value)
name.public static void ntype(long struct,
java.nio.ByteBuffer value)
type.public static void nvalue(long struct,
@Nullable
java.nio.ByteBuffer value)
value.public static void nsize(long struct,
int value)
size field of the specified struct.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.