Package org.lwjgl.util.tinyexr
Class EXRAttribute
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.tinyexr.EXRAttribute
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class EXRAttribute extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct EXRAttribute { char name[256]; char type[256]; unsigned char * value; int size; char[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEXRAttribute.BufferAn array ofEXRAttributestructs.
-
Constructor Summary
Constructors Constructor Description EXRAttribute(java.nio.ByteBuffer container)Creates aEXRAttributeinstance 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 EXRAttributecalloc()Returns a newEXRAttributeinstance allocated withmemCalloc.static EXRAttribute.Buffercalloc(int capacity)Returns a newEXRAttribute.Bufferinstance allocated withmemCalloc.static EXRAttribute.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEXRAttribute.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRAttributecalloc(org.lwjgl.system.MemoryStack stack)Returns a newEXRAttributeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRAttributecallocStack()Deprecated.static EXRAttribute.BuffercallocStack(int capacity)Deprecated.static EXRAttribute.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static EXRAttributecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static EXRAttributecreate()Returns a newEXRAttributeinstance allocated withBufferUtils.static EXRAttribute.Buffercreate(int capacity)Returns a newEXRAttribute.Bufferinstance allocated withBufferUtils.static EXRAttributecreate(long address)Returns a newEXRAttributeinstance for the specified memory address.static EXRAttribute.Buffercreate(long address, int capacity)Create aEXRAttribute.Bufferinstance at the specified memory.static EXRAttributecreateSafe(long address)static EXRAttribute.BuffercreateSafe(long address, int capacity)static EXRAttributemalloc()Returns a newEXRAttributeinstance allocated withmemAlloc.static EXRAttribute.Buffermalloc(int capacity)Returns a newEXRAttribute.Bufferinstance allocated withmemAlloc.static EXRAttribute.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEXRAttribute.Bufferinstance allocated on the specifiedMemoryStack.static EXRAttributemalloc(org.lwjgl.system.MemoryStack stack)Returns a newEXRAttributeinstance allocated on the specifiedMemoryStack.static EXRAttributemallocStack()Deprecated.static EXRAttribute.BuffermallocStack(int capacity)Deprecated.static EXRAttribute.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static EXRAttributemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.ByteBuffername()EXRAttributename(java.nio.ByteBuffer value)Copies the specified encoded string to thenamefield.java.lang.StringnameString()static 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 intnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, int value)Sets the specified value to thesizefield of the specifiedstruct.static java.nio.ByteBufferntype(long struct)Unsafe version oftype().static voidntype(long struct, java.nio.ByteBuffer value)Unsafe version oftype.static java.lang.StringntypeString(long struct)Unsafe version oftypeString().static java.nio.ByteBuffernvalue(long struct)Unsafe version ofvalue.static voidnvalue(long struct, java.nio.ByteBuffer value)Unsafe version ofvalue.EXRAttributeset(java.nio.ByteBuffer name, java.nio.ByteBuffer type, java.nio.ByteBuffer value)Initializes this struct with the specified values.EXRAttributeset(EXRAttribute src)Copies the specified struct data to this struct.intsize()intsizeof()java.nio.ByteBuffertype()EXRAttributetype(java.nio.ByteBuffer value)Copies the specified encoded string to thetypefield.java.lang.StringtypeString()static voidvalidate(long struct)Validates pointer members that should not beNULL.java.nio.ByteBuffervalue()EXRAttributevalue(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thevaluefield.
-
-
-
Constructor Detail
-
EXRAttribute
public EXRAttribute(java.nio.ByteBuffer container)
Creates aEXRAttributeinstance 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
public java.nio.ByteBuffer name()
- Returns:
- a
ByteBufferview of thenamefield.
-
nameString
public java.lang.String nameString()
- Returns:
- the null-terminated string stored in the
namefield.
-
type
public java.nio.ByteBuffer type()
- Returns:
- a
ByteBufferview of thetypefield.
-
typeString
public java.lang.String typeString()
- Returns:
- the null-terminated string stored in the
typefield.
-
value
@Nullable public java.nio.ByteBuffer value()
- Returns:
- a
ByteBufferview of the data pointed to by thevaluefield.
-
size
public int size()
- Returns:
- the value of the
sizefield.
-
name
public EXRAttribute name(java.nio.ByteBuffer value)
Copies the specified encoded string to thenamefield.
-
type
public EXRAttribute type(java.nio.ByteBuffer value)
Copies the specified encoded string to thetypefield.
-
value
public EXRAttribute value(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thevaluefield.
-
set
public EXRAttribute set(java.nio.ByteBuffer name, java.nio.ByteBuffer type, @Nullable java.nio.ByteBuffer value)
Initializes this struct with the specified values.
-
set
public EXRAttribute set(EXRAttribute src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static EXRAttribute malloc()
Returns a newEXRAttributeinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static EXRAttribute calloc()
Returns a newEXRAttributeinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static EXRAttribute create()
Returns a newEXRAttributeinstance allocated withBufferUtils.
-
create
public static EXRAttribute create(long address)
Returns a newEXRAttributeinstance for the specified memory address.
-
createSafe
@Nullable public static EXRAttribute createSafe(long address)
-
malloc
public static EXRAttribute.Buffer malloc(int capacity)
Returns a newEXRAttribute.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static EXRAttribute.Buffer calloc(int capacity)
Returns a newEXRAttribute.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static EXRAttribute.Buffer create(int capacity)
Returns a newEXRAttribute.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static EXRAttribute.Buffer create(long address, int capacity)
Create aEXRAttribute.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static EXRAttribute.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static EXRAttribute mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static EXRAttribute callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRAttribute mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static EXRAttribute callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRAttribute.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static EXRAttribute.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRAttribute.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 EXRAttribute.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static EXRAttribute malloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRAttributeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static EXRAttribute calloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRAttributeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static EXRAttribute.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRAttribute.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static EXRAttribute.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRAttribute.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().
-
ntype
public static java.nio.ByteBuffer ntype(long struct)
Unsafe version oftype().
-
ntypeString
public static java.lang.String ntypeString(long struct)
Unsafe version oftypeString().
-
nvalue
@Nullable public static java.nio.ByteBuffer nvalue(long struct)
Unsafe version ofvalue.
-
nsize
public static int nsize(long struct)
Unsafe version ofsize().
-
nname
public static void nname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.
-
ntype
public static void ntype(long struct, java.nio.ByteBuffer value)Unsafe version oftype.
-
nvalue
public static void nvalue(long struct, @Nullable java.nio.ByteBuffer value)Unsafe version ofvalue.
-
nsize
public static void nsize(long struct, int value)Sets the specified value to thesizefield of the specifiedstruct.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-