Class ExrProgressInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrProgressInfo extends Struct<ExrProgressInfo> implements NativeResource
struct ExrProgressInfo {
    int32_t percent_complete;
    int32_t current_block;
    int32_t total_blocks;
    uint64_t bytes_processed;
    uint64_t bytes_total;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • PERCENT_COMPLETE

      public static final int PERCENT_COMPLETE
      The struct member offsets.
    • CURRENT_BLOCK

      public static final int CURRENT_BLOCK
      The struct member offsets.
    • TOTAL_BLOCKS

      public static final int TOTAL_BLOCKS
      The struct member offsets.
    • BYTES_PROCESSED

      public static final int BYTES_PROCESSED
      The struct member offsets.
    • BYTES_TOTAL

      public static final int BYTES_TOTAL
      The struct member offsets.
  • Constructor Details

    • ExrProgressInfo

      public ExrProgressInfo(ByteBuffer container)
      Creates a ExrProgressInfo instance at the current position of the specified ByteBuffer 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
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<ExrProgressInfo>
    • percent_complete

      @NativeType("int32_t") public int percent_complete()
      Returns:
      the value of the percent_complete field.
    • current_block

      @NativeType("int32_t") public int current_block()
      Returns:
      the value of the current_block field.
    • total_blocks

      @NativeType("int32_t") public int total_blocks()
      Returns:
      the value of the total_blocks field.
    • bytes_processed

      @NativeType("uint64_t") public long bytes_processed()
      Returns:
      the value of the bytes_processed field.
    • bytes_total

      @NativeType("uint64_t") public long bytes_total()
      Returns:
      the value of the bytes_total field.
    • percent_complete

      public ExrProgressInfo percent_complete(@NativeType("int32_t") int value)
      Sets the specified value to the percent_complete field.
    • current_block

      public ExrProgressInfo current_block(@NativeType("int32_t") int value)
      Sets the specified value to the current_block field.
    • total_blocks

      public ExrProgressInfo total_blocks(@NativeType("int32_t") int value)
      Sets the specified value to the total_blocks field.
    • bytes_processed

      public ExrProgressInfo bytes_processed(@NativeType("uint64_t") long value)
      Sets the specified value to the bytes_processed field.
    • bytes_total

      public ExrProgressInfo bytes_total(@NativeType("uint64_t") long value)
      Sets the specified value to the bytes_total field.
    • 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

      public ExrProgressInfo set(ExrProgressInfo src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static ExrProgressInfo malloc()
      Returns a new ExrProgressInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static ExrProgressInfo calloc()
      Returns a new ExrProgressInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static ExrProgressInfo create()
      Returns a new ExrProgressInfo instance allocated with BufferUtils.
    • create

      public static ExrProgressInfo create(long address)
      Returns a new ExrProgressInfo instance for the specified memory address.
    • createSafe

      public static @Nullable ExrProgressInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static ExrProgressInfo.Buffer malloc(int capacity)
      Returns a new ExrProgressInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static ExrProgressInfo.Buffer calloc(int capacity)
      Returns a new ExrProgressInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ExrProgressInfo.Buffer create(int capacity)
      Returns a new ExrProgressInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ExrProgressInfo.Buffer create(long address, int capacity)
      Create a ExrProgressInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable ExrProgressInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static ExrProgressInfo malloc(MemoryStack stack)
      Returns a new ExrProgressInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static ExrProgressInfo calloc(MemoryStack stack)
      Returns a new ExrProgressInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static ExrProgressInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new ExrProgressInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static ExrProgressInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new ExrProgressInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • npercent_complete

      public static int npercent_complete(long struct)
      Unsafe version of percent_complete().
    • ncurrent_block

      public static int ncurrent_block(long struct)
      Unsafe version of current_block().
    • ntotal_blocks

      public static int ntotal_blocks(long struct)
      Unsafe version of total_blocks().
    • nbytes_processed

      public static long nbytes_processed(long struct)
      Unsafe version of bytes_processed().
    • nbytes_total

      public static long nbytes_total(long struct)
      Unsafe version of bytes_total().
    • npercent_complete

      public static void npercent_complete(long struct, int value)
      Unsafe version of percent_complete.
    • ncurrent_block

      public static void ncurrent_block(long struct, int value)
      Unsafe version of current_block.
    • ntotal_blocks

      public static void ntotal_blocks(long struct, int value)
      Unsafe version of total_blocks.
    • nbytes_processed

      public static void nbytes_processed(long struct, long value)
      Unsafe version of bytes_processed.
    • nbytes_total

      public static void nbytes_total(long struct, long value)
      Unsafe version of bytes_total.