Class FT_Open_Args.Buffer

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

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

    • Buffer

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

    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • memory_base

      public @Nullable ByteBuffer memory_base()
      Returns:
      a ByteBuffer view of the data pointed to by the memory_base field.
    • memory_size

      public long memory_size()
      Returns:
      the value of the memory_size field.
    • pathname

      public @Nullable ByteBuffer pathname()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the pathname field.
    • pathnameString

      public @Nullable String pathnameString()
      Returns:
      the null-terminated string pointed to by the pathname field.
    • stream$

      public @Nullable FT_Stream stream$()
      Returns:
      a FT_Stream view of the struct pointed to by the stream field.
    • driver

      public long driver()
      Returns:
      the value of the driver field.
    • num_params

      public int num_params()
      Returns:
      the value of the num_params field.
    • params

      public @Nullable FT_Parameter.Buffer params()
      Returns:
      a FT_Parameter.Buffer view of the struct array pointed to by the params field.
    • flags

      public FT_Open_Args.Buffer flags(int value)
      Sets the specified value to the flags field.
    • memory_base

      public FT_Open_Args.Buffer memory_base(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the memory_base field.
    • memory_size

      public FT_Open_Args.Buffer memory_size(long value)
      Sets the specified value to the memory_size field.
    • pathname

      public FT_Open_Args.Buffer pathname(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the pathname field.
    • stream$

      public FT_Open_Args.Buffer stream$(@Nullable FT_Stream value)
      Sets the address of the specified FT_Stream to the stream field.
    • driver

      public FT_Open_Args.Buffer driver(long value)
      Sets the specified value to the driver field.
    • num_params

      public FT_Open_Args.Buffer num_params(int value)
      Sets the specified value to the num_params field.
    • params

      public FT_Open_Args.Buffer params(@Nullable FT_Parameter.Buffer value)
      Sets the address of the specified FT_Parameter.Buffer to the params field.