Class ExrPartInfo.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new ExrPartInfo.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 ExrPartInfo.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

    • name

      @NativeType("char const *") public @Nullable ByteBuffer name()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the name field.
    • nameString

      @NativeType("char const *") public @Nullable String nameString()
      Returns:
      the null-terminated string pointed to by the name field.
    • type_string

      @NativeType("char const *") public ByteBuffer type_string()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the type_string field.
    • type_stringString

      @NativeType("char const *") public String type_stringString()
      Returns:
      the null-terminated string pointed to by the type_string field.
    • part_type

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

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

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

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

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

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

      public ExrPartInfo.Buffer name(@NativeType("char const *") @Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the name field.
    • type_string

      public ExrPartInfo.Buffer type_string(@NativeType("char const *") ByteBuffer value)
      Sets the address of the specified encoded string to the type_string field.
    • part_type

      public ExrPartInfo.Buffer part_type(@NativeType("uint32_t") int value)
      Sets the specified value to the part_type field.
    • width

      public ExrPartInfo.Buffer width(@NativeType("int32_t") int value)
      Sets the specified value to the width field.
    • height

      public ExrPartInfo.Buffer height(@NativeType("int32_t") int value)
      Sets the specified value to the height field.
    • num_channels

      public ExrPartInfo.Buffer num_channels(@NativeType("uint32_t") int value)
      Sets the specified value to the num_channels field.
    • compression

      public ExrPartInfo.Buffer compression(@NativeType("uint32_t") int value)
      Sets the specified value to the compression field.
    • flags

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