Class FT_Module_Class.Buffer

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

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

    • Buffer

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

    • module_flags

      public long module_flags()
      Returns:
      the value of the module_flags field.
    • module_size

      public long module_size()
      Returns:
      the value of the module_size field.
    • module_name

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

      public String module_nameString()
      Returns:
      the null-terminated string pointed to by the module_name field.
    • module_version

      public long module_version()
      Returns:
      the value of the module_version field.
    • module_requires

      public long module_requires()
      Returns:
      the value of the module_requires field.
    • module_interface

      public @Nullable ByteBuffer module_interface(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the module_interface field.
    • module_init

      public @Nullable FT_Module_Constructor module_init()
      Returns:
      the value of the module_init field.
    • module_done

      public @Nullable FT_Module_Destructor module_done()
      Returns:
      the value of the module_done field.
    • get_interface

      public @Nullable FT_Module_Requester get_interface()
      Returns:
      the value of the get_interface field.
    • module_flags

      public FT_Module_Class.Buffer module_flags(long value)
      Sets the specified value to the module_flags field.
    • module_size

      public FT_Module_Class.Buffer module_size(long value)
      Sets the specified value to the module_size field.
    • module_name

      public FT_Module_Class.Buffer module_name(ByteBuffer value)
      Sets the address of the specified encoded string to the module_name field.
    • module_version

      public FT_Module_Class.Buffer module_version(long value)
      Sets the specified value to the module_version field.
    • module_requires

      public FT_Module_Class.Buffer module_requires(long value)
      Sets the specified value to the module_requires field.
    • module_interface

      public FT_Module_Class.Buffer module_interface(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the module_interface field.
    • module_init

      public FT_Module_Class.Buffer module_init(@Nullable FT_Module_ConstructorI value)
      Sets the specified value to the module_init field.
    • module_done

      public FT_Module_Class.Buffer module_done(@Nullable FT_Module_DestructorI value)
      Sets the specified value to the module_done field.
    • get_interface

      public FT_Module_Class.Buffer get_interface(@Nullable FT_Module_RequesterI value)
      Sets the specified value to the get_interface field.