Package org.lwjgl.util.tinyexr
Class EXRVersion
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct EXRVersion {
int version;
int tiled;
int long_name;
int non_image;
int multipart;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionEXRVersion
(ByteBuffer container) Creates aEXRVersion
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRVersion
calloc()
Returns a newEXRVersion
instance allocated withmemCalloc
.static EXRVersion.Buffer
calloc
(int capacity) Returns a newEXRVersion.Buffer
instance allocated withmemCalloc
.static EXRVersion.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newEXRVersion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRVersion
calloc
(MemoryStack stack) Returns a newEXRVersion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRVersion
Deprecated.static EXRVersion.Buffer
callocStack
(int capacity) Deprecated.static EXRVersion.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static EXRVersion
callocStack
(MemoryStack stack) Deprecated.static EXRVersion
create()
Returns a newEXRVersion
instance allocated withBufferUtils
.static EXRVersion.Buffer
create
(int capacity) Returns a newEXRVersion.Buffer
instance allocated withBufferUtils
.static EXRVersion
create
(long address) Returns a newEXRVersion
instance for the specified memory address.static EXRVersion.Buffer
create
(long address, int capacity) Create aEXRVersion.Buffer
instance at the specified memory.static @Nullable EXRVersion
createSafe
(long address) static @Nullable EXRVersion.Buffer
createSafe
(long address, int capacity) boolean
long_name
(boolean value) Sets the specified value to thelong_name
field.static EXRVersion
malloc()
Returns a newEXRVersion
instance allocated withmemAlloc
.static EXRVersion.Buffer
malloc
(int capacity) Returns a newEXRVersion.Buffer
instance allocated withmemAlloc
.static EXRVersion.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newEXRVersion.Buffer
instance allocated on the specifiedMemoryStack
.static EXRVersion
malloc
(MemoryStack stack) Returns a newEXRVersion
instance allocated on the specifiedMemoryStack
.static EXRVersion
Deprecated.static EXRVersion.Buffer
mallocStack
(int capacity) Deprecated.static EXRVersion.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static EXRVersion
mallocStack
(MemoryStack stack) Deprecated.boolean
multipart
(boolean value) Sets the specified value to themultipart
field.static int
nlong_name
(long struct) Unsafe version oflong_name()
.static void
nlong_name
(long struct, int value) Unsafe version oflong_name
.static int
nmultipart
(long struct) Unsafe version ofmultipart()
.static void
nmultipart
(long struct, int value) Unsafe version ofmultipart
.static int
nnon_image
(long struct) Unsafe version ofnon_image()
.static void
nnon_image
(long struct, int value) Unsafe version ofnon_image
.boolean
non_image
(boolean value) Sets the specified value to thenon_image
field.static int
ntiled
(long struct) Unsafe version oftiled()
.static void
ntiled
(long struct, int value) Unsafe version oftiled
.static int
nversion
(long struct) Unsafe version ofversion()
.static void
nversion
(long struct, int value) Unsafe version ofversion
.set
(int version, boolean tiled, boolean long_name, boolean non_image, boolean multipart) Initializes this struct with the specified values.set
(EXRVersion src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.boolean
tiled()
tiled
(boolean value) Sets the specified value to thetiled
field.int
version()
version
(int value) Sets the specified value to theversion
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VERSION
public static final int VERSIONThe struct member offsets. -
TILED
public static final int TILEDThe struct member offsets. -
LONG_NAME
public static final int LONG_NAMEThe struct member offsets. -
NON_IMAGE
public static final int NON_IMAGEThe struct member offsets. -
MULTIPART
public static final int MULTIPARTThe struct member offsets.
-
-
Constructor Details
-
EXRVersion
Creates aEXRVersion
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<EXRVersion>
-
version
public int version()- Returns:
- the value of the
version
field.
-
tiled
public boolean tiled()- Returns:
- the value of the
tiled
field.
-
long_name
public boolean long_name()- Returns:
- the value of the
long_name
field.
-
non_image
public boolean non_image()- Returns:
- the value of the
non_image
field.
-
multipart
public boolean multipart()- Returns:
- the value of the
multipart
field.
-
version
Sets the specified value to theversion
field. -
tiled
Sets the specified value to thetiled
field. -
long_name
Sets the specified value to thelong_name
field. -
non_image
Sets the specified value to thenon_image
field. -
multipart
Sets the specified value to themultipart
field. -
set
public EXRVersion set(int version, boolean tiled, boolean long_name, boolean non_image, boolean multipart) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newEXRVersion
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newEXRVersion
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newEXRVersion
instance allocated withBufferUtils
. -
create
Returns a newEXRVersion
instance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRVersion.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newEXRVersion.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newEXRVersion.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aEXRVersion.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newEXRVersion
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newEXRVersion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newEXRVersion.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newEXRVersion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nversion
public static int nversion(long struct) Unsafe version ofversion()
. -
ntiled
public static int ntiled(long struct) Unsafe version oftiled()
. -
nlong_name
public static int nlong_name(long struct) Unsafe version oflong_name()
. -
nnon_image
public static int nnon_image(long struct) Unsafe version ofnon_image()
. -
nmultipart
public static int nmultipart(long struct) Unsafe version ofmultipart()
. -
nversion
public static void nversion(long struct, int value) Unsafe version ofversion
. -
ntiled
public static void ntiled(long struct, int value) Unsafe version oftiled
. -
nlong_name
public static void nlong_name(long struct, int value) Unsafe version oflong_name
. -
nnon_image
public static void nnon_image(long struct, int value) Unsafe version ofnon_image
. -
nmultipart
public static void nmultipart(long struct, int value) Unsafe version ofmultipart
.
-