Class AIExportFormatDesc.Buffer

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

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

    • Buffer

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

    • id

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

      @NativeType("char const *") public String idString()
      Returns:
      the null-terminated string pointed to by the id field.
    • description

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

      @NativeType("char const *") public String descriptionString()
      Returns:
      the null-terminated string pointed to by the description field.
    • fileExtension

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

      @NativeType("char const *") public String fileExtensionString()
      Returns:
      the null-terminated string pointed to by the fileExtension field.
    • id

      public AIExportFormatDesc.Buffer id(@NativeType("char const *") ByteBuffer value)
      Sets the address of the specified encoded string to the id field.
    • description

      public AIExportFormatDesc.Buffer description(@NativeType("char const *") ByteBuffer value)
      Sets the address of the specified encoded string to the description field.
    • fileExtension

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