Class ExrDecoderCreateInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrDecoderCreateInfo {
ExrDataSource source;
ExrMemoryPool scratch_pool;
uint32_t flags;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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 size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionExrDecoderCreateInfo(ByteBuffer container) Creates aExrDecoderCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrDecoderCreateInfocalloc()Returns a newExrDecoderCreateInfoinstance allocated withmemCalloc.static ExrDecoderCreateInfo.Buffercalloc(int capacity) Returns a newExrDecoderCreateInfo.Bufferinstance allocated withmemCalloc.static ExrDecoderCreateInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrDecoderCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDecoderCreateInfocalloc(MemoryStack stack) Returns a newExrDecoderCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDecoderCreateInfocreate()Returns a newExrDecoderCreateInfoinstance allocated withBufferUtils.static ExrDecoderCreateInfo.Buffercreate(int capacity) Returns a newExrDecoderCreateInfo.Bufferinstance allocated withBufferUtils.static ExrDecoderCreateInfocreate(long address) Returns a newExrDecoderCreateInfoinstance for the specified memory address.static ExrDecoderCreateInfo.Buffercreate(long address, int capacity) Create aExrDecoderCreateInfo.Bufferinstance at the specified memory.static @Nullable ExrDecoderCreateInfocreateSafe(long address) static @Nullable ExrDecoderCreateInfo.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static ExrDecoderCreateInfomalloc()Returns a newExrDecoderCreateInfoinstance allocated withmemAlloc.static ExrDecoderCreateInfo.Buffermalloc(int capacity) Returns a newExrDecoderCreateInfo.Bufferinstance allocated withmemAlloc.static ExrDecoderCreateInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrDecoderCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrDecoderCreateInfomalloc(MemoryStack stack) Returns a newExrDecoderCreateInfoinstance allocated on the specifiedMemoryStack.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnscratch_pool(long struct) Unsafe version ofscratch_pool().static voidnscratch_pool(long struct, long value) Unsafe version ofscratch_pool.static ExrDataSourcensource(long struct) Unsafe version ofsource().static voidnsource(long struct, ExrDataSource value) Unsafe version ofsource.longscratch_pool(long value) Sets the specified value to thescratch_poolfield.set(ExrDataSource source, long scratch_pool, int flags) Initializes this struct with the specified values.set(ExrDecoderCreateInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).source()source(Consumer<ExrDataSource> consumer) Passes thesourcefield to the specifiedConsumer.source(ExrDataSource value) Copies the specifiedExrDataSourceto thesourcefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
SOURCE
public static final int SOURCEThe struct member offsets. -
SCRATCH_POOL
public static final int SCRATCH_POOLThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
ExrDecoderCreateInfo
Creates aExrDecoderCreateInfoinstance 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<ExrDecoderCreateInfo>
-
source
- Returns:
- a
ExrDataSourceview of thesourcefield.
-
scratch_pool
- Returns:
- the value of the
scratch_poolfield.
-
flags
- Returns:
- the value of the
flagsfield.
-
source
Copies the specifiedExrDataSourceto thesourcefield. -
source
Passes thesourcefield to the specifiedConsumer. -
scratch_pool
Sets the specified value to thescratch_poolfield. -
flags
Sets the specified value to theflagsfield. -
set
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 newExrDecoderCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrDecoderCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrDecoderCreateInfoinstance allocated withBufferUtils. -
create
Returns a newExrDecoderCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrDecoderCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrDecoderCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrDecoderCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrDecoderCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrDecoderCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrDecoderCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrDecoderCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrDecoderCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsource
Unsafe version ofsource(). -
nscratch_pool
public static long nscratch_pool(long struct) Unsafe version ofscratch_pool(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nsource
Unsafe version ofsource. -
nscratch_pool
public static void nscratch_pool(long struct, long value) Unsafe version ofscratch_pool. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-