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

      public ByteBuffer id()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the id field.
    • idString

      public String idString()
      Returns:
      the null-terminated string pointed to by the id field.
    • description

      public ByteBuffer description()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the description field.
    • descriptionString

      public String descriptionString()
      Returns:
      the null-terminated string pointed to by the description field.
    • fileExtension

      public ByteBuffer fileExtension()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the fileExtension field.
    • fileExtensionString

      public String fileExtensionString()
      Returns:
      the null-terminated string pointed to by the fileExtension field.
    • id

      Sets the address of the specified encoded string to the id field.
    • description

      public AIExportFormatDesc.Buffer description(ByteBuffer value)
      Sets the address of the specified encoded string to the description field.
    • fileExtension

      public AIExportFormatDesc.Buffer fileExtension(ByteBuffer value)
      Sets the address of the specified encoded string to the fileExtension field.