Class ExrChunkInfo.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<ExrChunkInfo>, NativeResource, Pointer
Enclosing class:
ExrChunkInfo

public static class ExrChunkInfo.Buffer extends StructBuffer<ExrChunkInfo, ExrChunkInfo.Buffer> implements NativeResource
An array of ExrChunkInfo structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new ExrChunkInfo.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by ExrChunkInfo.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • file_offset

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

      @NativeType("uint32_t") public int compressed_size()
      Returns:
      the value of the compressed_size field.
    • uncompressed_size

      @NativeType("uint32_t") public int uncompressed_size()
      Returns:
      the value of the uncompressed_size field.
    • y_start

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

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

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

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

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

      @NativeType("uint32_t") public int chunk_type()
      Returns:
      the value of the chunk_type field.
    • file_offset

      public ExrChunkInfo.Buffer file_offset(@NativeType("uint64_t") long value)
      Sets the specified value to the file_offset field.
    • compressed_size

      public ExrChunkInfo.Buffer compressed_size(@NativeType("uint32_t") int value)
      Sets the specified value to the compressed_size field.
    • uncompressed_size

      public ExrChunkInfo.Buffer uncompressed_size(@NativeType("uint32_t") int value)
      Sets the specified value to the uncompressed_size field.
    • y_start

      public ExrChunkInfo.Buffer y_start(@NativeType("int32_t") int value)
      Sets the specified value to the y_start field.
    • tile_x

      public ExrChunkInfo.Buffer tile_x(@NativeType("int32_t") int value)
      Sets the specified value to the tile_x field.
    • tile_y

      public ExrChunkInfo.Buffer tile_y(@NativeType("int32_t") int value)
      Sets the specified value to the tile_y field.
    • level_x

      public ExrChunkInfo.Buffer level_x(@NativeType("int32_t") int value)
      Sets the specified value to the level_x field.
    • level_y

      public ExrChunkInfo.Buffer level_y(@NativeType("int32_t") int value)
      Sets the specified value to the level_y field.
    • chunk_type

      public ExrChunkInfo.Buffer chunk_type(@NativeType("uint32_t") int value)
      Sets the specified value to the chunk_type field.