Class ExrProgressInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrProgressInfo {
int32_t percent_complete;
int32_t current_block;
int32_t total_blocks;
uint64_t bytes_processed;
uint64_t bytes_total;
}-
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 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
ConstructorsConstructorDescriptionExrProgressInfo(ByteBuffer container) Creates aExrProgressInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongbytes_processed(long value) Sets the specified value to thebytes_processedfield.longbytes_total(long value) Sets the specified value to thebytes_totalfield.static ExrProgressInfocalloc()Returns a newExrProgressInfoinstance allocated withmemCalloc.static ExrProgressInfo.Buffercalloc(int capacity) Returns a newExrProgressInfo.Bufferinstance allocated withmemCalloc.static ExrProgressInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrProgressInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrProgressInfocalloc(MemoryStack stack) Returns a newExrProgressInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrProgressInfocreate()Returns a newExrProgressInfoinstance allocated withBufferUtils.static ExrProgressInfo.Buffercreate(int capacity) Returns a newExrProgressInfo.Bufferinstance allocated withBufferUtils.static ExrProgressInfocreate(long address) Returns a newExrProgressInfoinstance for the specified memory address.static ExrProgressInfo.Buffercreate(long address, int capacity) Create aExrProgressInfo.Bufferinstance at the specified memory.static @Nullable ExrProgressInfocreateSafe(long address) static @Nullable ExrProgressInfo.BuffercreateSafe(long address, int capacity) intcurrent_block(int value) Sets the specified value to thecurrent_blockfield.static ExrProgressInfomalloc()Returns a newExrProgressInfoinstance allocated withmemAlloc.static ExrProgressInfo.Buffermalloc(int capacity) Returns a newExrProgressInfo.Bufferinstance allocated withmemAlloc.static ExrProgressInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrProgressInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrProgressInfomalloc(MemoryStack stack) Returns a newExrProgressInfoinstance allocated on the specifiedMemoryStack.static longnbytes_processed(long struct) Unsafe version ofbytes_processed().static voidnbytes_processed(long struct, long value) Unsafe version ofbytes_processed.static longnbytes_total(long struct) Unsafe version ofbytes_total().static voidnbytes_total(long struct, long value) Unsafe version ofbytes_total.static intncurrent_block(long struct) Unsafe version ofcurrent_block().static voidncurrent_block(long struct, int value) Unsafe version ofcurrent_block.static intnpercent_complete(long struct) Unsafe version ofpercent_complete().static voidnpercent_complete(long struct, int value) Unsafe version ofpercent_complete.static intntotal_blocks(long struct) Unsafe version oftotal_blocks().static voidntotal_blocks(long struct, int value) Unsafe version oftotal_blocks.intpercent_complete(int value) Sets the specified value to thepercent_completefield.set(int percent_complete, int current_block, int total_blocks, long bytes_processed, long bytes_total) Initializes this struct with the specified values.set(ExrProgressInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttotal_blocks(int value) Sets the specified value to thetotal_blocksfield.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. -
PERCENT_COMPLETE
public static final int PERCENT_COMPLETEThe struct member offsets. -
CURRENT_BLOCK
public static final int CURRENT_BLOCKThe struct member offsets. -
TOTAL_BLOCKS
public static final int TOTAL_BLOCKSThe struct member offsets. -
BYTES_PROCESSED
public static final int BYTES_PROCESSEDThe struct member offsets. -
BYTES_TOTAL
public static final int BYTES_TOTALThe struct member offsets.
-
-
Constructor Details
-
ExrProgressInfo
Creates aExrProgressInfoinstance 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<ExrProgressInfo>
-
percent_complete
- Returns:
- the value of the
percent_completefield.
-
current_block
- Returns:
- the value of the
current_blockfield.
-
total_blocks
- Returns:
- the value of the
total_blocksfield.
-
bytes_processed
- Returns:
- the value of the
bytes_processedfield.
-
bytes_total
- Returns:
- the value of the
bytes_totalfield.
-
percent_complete
Sets the specified value to thepercent_completefield. -
current_block
Sets the specified value to thecurrent_blockfield. -
total_blocks
Sets the specified value to thetotal_blocksfield. -
bytes_processed
Sets the specified value to thebytes_processedfield. -
bytes_total
Sets the specified value to thebytes_totalfield. -
set
public ExrProgressInfo set(int percent_complete, int current_block, int total_blocks, long bytes_processed, long bytes_total) 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 newExrProgressInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrProgressInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrProgressInfoinstance allocated withBufferUtils. -
create
Returns a newExrProgressInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrProgressInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrProgressInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrProgressInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrProgressInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrProgressInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrProgressInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrProgressInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrProgressInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npercent_complete
public static int npercent_complete(long struct) Unsafe version ofpercent_complete(). -
ncurrent_block
public static int ncurrent_block(long struct) Unsafe version ofcurrent_block(). -
ntotal_blocks
public static int ntotal_blocks(long struct) Unsafe version oftotal_blocks(). -
nbytes_processed
public static long nbytes_processed(long struct) Unsafe version ofbytes_processed(). -
nbytes_total
public static long nbytes_total(long struct) Unsafe version ofbytes_total(). -
npercent_complete
public static void npercent_complete(long struct, int value) Unsafe version ofpercent_complete. -
ncurrent_block
public static void ncurrent_block(long struct, int value) Unsafe version ofcurrent_block. -
ntotal_blocks
public static void ntotal_blocks(long struct, int value) Unsafe version oftotal_blocks. -
nbytes_processed
public static void nbytes_processed(long struct, long value) Unsafe version ofbytes_processed. -
nbytes_total
public static void nbytes_total(long struct, long value) Unsafe version ofbytes_total.
-