Class FT_Palette_Data.Buffer

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

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

    • Buffer

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

    • num_palettes

      public short num_palettes()
      Returns:
      the value of the num_palettes field.
    • palette_name_ids

      public @Nullable ShortBuffer palette_name_ids()
      Returns:
      a ShortBuffer view of the data pointed to by the palette_name_ids field.
    • palette_flags

      public @Nullable ShortBuffer palette_flags()
      Returns:
      a ShortBuffer view of the data pointed to by the palette_flags field.
    • num_palette_entries

      public short num_palette_entries()
      Returns:
      the value of the num_palette_entries field.
    • palette_entry_name_ids

      public @Nullable ShortBuffer palette_entry_name_ids()
      Returns:
      a ShortBuffer view of the data pointed to by the palette_entry_name_ids field.