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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aEXRVersioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRVersioncalloc()Returns a newEXRVersioninstance allocated withmemCalloc.static EXRVersion.Buffercalloc(int capacity) Returns a newEXRVersion.Bufferinstance allocated withmemCalloc.static EXRVersion.Buffercalloc(int capacity, MemoryStack stack) Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRVersioncalloc(MemoryStack stack) Returns a newEXRVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRVersionDeprecated.static EXRVersion.BuffercallocStack(int capacity) Deprecated.static EXRVersion.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static EXRVersioncallocStack(MemoryStack stack) Deprecated.static EXRVersioncreate()Returns a newEXRVersioninstance allocated withBufferUtils.static EXRVersion.Buffercreate(int capacity) Returns a newEXRVersion.Bufferinstance allocated withBufferUtils.static EXRVersioncreate(long address) Returns a newEXRVersioninstance for the specified memory address.static EXRVersion.Buffercreate(long address, int capacity) Create aEXRVersion.Bufferinstance at the specified memory.static @Nullable EXRVersioncreateSafe(long address) static @Nullable EXRVersion.BuffercreateSafe(long address, int capacity) booleanlong_name(boolean value) Sets the specified value to thelong_namefield.static EXRVersionmalloc()Returns a newEXRVersioninstance allocated withmemAlloc.static EXRVersion.Buffermalloc(int capacity) Returns a newEXRVersion.Bufferinstance allocated withmemAlloc.static EXRVersion.Buffermalloc(int capacity, MemoryStack stack) Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStack.static EXRVersionmalloc(MemoryStack stack) Returns a newEXRVersioninstance allocated on the specifiedMemoryStack.static EXRVersionDeprecated.static EXRVersion.BuffermallocStack(int capacity) Deprecated.static EXRVersion.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static EXRVersionmallocStack(MemoryStack stack) Deprecated.booleanmultipart(boolean value) Sets the specified value to themultipartfield.static intnlong_name(long struct) Unsafe version oflong_name().static voidnlong_name(long struct, int value) Unsafe version oflong_name.static intnmultipart(long struct) Unsafe version ofmultipart().static voidnmultipart(long struct, int value) Unsafe version ofmultipart.static intnnon_image(long struct) Unsafe version ofnon_image().static voidnnon_image(long struct, int value) Unsafe version ofnon_image.booleannon_image(boolean value) Sets the specified value to thenon_imagefield.static intntiled(long struct) Unsafe version oftiled().static voidntiled(long struct, int value) Unsafe version oftiled.static intnversion(long struct) Unsafe version ofversion().static voidnversion(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.intsizeof()Returnssizeof(struct).booleantiled()tiled(boolean value) Sets the specified value to thetiledfield.intversion()version(int value) Sets the specified value to theversionfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aEXRVersioninstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<EXRVersion>
-
version
public int version()- Returns:
- the value of the
versionfield.
-
tiled
public boolean tiled()- Returns:
- the value of the
tiledfield.
-
long_name
public boolean long_name()- Returns:
- the value of the
long_namefield.
-
non_image
public boolean non_image()- Returns:
- the value of the
non_imagefield.
-
multipart
public boolean multipart()- Returns:
- the value of the
multipartfield.
-
version
Sets the specified value to theversionfield. -
tiled
Sets the specified value to thetiledfield. -
long_name
Sets the specified value to thelong_namefield. -
non_image
Sets the specified value to thenon_imagefield. -
multipart
Sets the specified value to themultipartfield. -
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 newEXRVersioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newEXRVersioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newEXRVersioninstance allocated withBufferUtils. -
create
Returns a newEXRVersioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRVersion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newEXRVersion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newEXRVersion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aEXRVersion.Bufferinstance 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 newEXRVersioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newEXRVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStackand 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.
-