Class ExrErrorInfo.Buffer

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

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

    • Buffer

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

    • code

      @NativeType("ExrResult") public int code()
      Returns:
      the value of the code field.
    • message

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

      @NativeType("char const *") public String messageString()
      Returns:
      the null-terminated string pointed to by the message field.
    • context

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

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

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

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

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

      @NativeType("char const *") public String source_fileString()
      Returns:
      the null-terminated string pointed to by the source_file field.
    • code

      public ExrErrorInfo.Buffer code(@NativeType("ExrResult") int value)
      Sets the specified value to the code field.
    • message

      public ExrErrorInfo.Buffer message(@NativeType("char const *") ByteBuffer value)
      Sets the address of the specified encoded string to the message field.
    • context

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

      public ExrErrorInfo.Buffer byte_position(@NativeType("uint64_t") long value)
      Sets the specified value to the byte_position field.
    • line_number

      public ExrErrorInfo.Buffer line_number(@NativeType("int32_t") int value)
      Sets the specified value to the line_number field.
    • source_file

      public ExrErrorInfo.Buffer source_file(@NativeType("char const *") ByteBuffer value)
      Sets the address of the specified encoded string to the source_file field.