Class FT_LayerIterator

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FT_LayerIterator extends Struct<FT_LayerIterator> implements NativeResource

 struct FT_LayerIterator {
     FT_UInt num_layers;
     FT_UInt layer;
     FT_Byte * p;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • NUM_LAYERS

      public static final int NUM_LAYERS
      The struct member offsets.
    • LAYER

      public static final int LAYER
      The struct member offsets.
    • P

      public static final int P
      The struct member offsets.
  • Constructor Details

    • FT_LayerIterator

      public FT_LayerIterator(ByteBuffer container)
      Creates a FT_LayerIterator instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<FT_LayerIterator>
    • num_layers

      public int num_layers()
      Returns:
      the value of the num_layers field.
    • layer

      public int layer()
      Returns:
      the value of the layer field.
    • p

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

      public static FT_LayerIterator malloc()
      Returns a new FT_LayerIterator instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static FT_LayerIterator calloc()
      Returns a new FT_LayerIterator instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static FT_LayerIterator create()
      Returns a new FT_LayerIterator instance allocated with BufferUtils.
    • create

      public static FT_LayerIterator create(long address)
      Returns a new FT_LayerIterator instance for the specified memory address.
    • createSafe

      public static @Nullable FT_LayerIterator createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static FT_LayerIterator.Buffer malloc(int capacity)
      Returns a new FT_LayerIterator.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static FT_LayerIterator.Buffer calloc(int capacity)
      Returns a new FT_LayerIterator.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FT_LayerIterator.Buffer create(int capacity)
      Returns a new FT_LayerIterator.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FT_LayerIterator.Buffer create(long address, int capacity)
      Create a FT_LayerIterator.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable FT_LayerIterator.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static FT_LayerIterator malloc(MemoryStack stack)
      Returns a new FT_LayerIterator instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static FT_LayerIterator calloc(MemoryStack stack)
      Returns a new FT_LayerIterator instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static FT_LayerIterator.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new FT_LayerIterator.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FT_LayerIterator.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new FT_LayerIterator.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nnum_layers

      public static int nnum_layers(long struct)
      Unsafe version of num_layers().
    • nlayer

      public static int nlayer(long struct)
      Unsafe version of layer().
    • np

      public static @Nullable ByteBuffer np(long struct, int capacity)
      Unsafe version of p.