Class FT_Span

All Implemented Interfaces:
Pointer

public class FT_Span extends Struct<FT_Span>

 struct FT_Span {
     short x;
     unsigned short len;
     unsigned char coverage;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int X
      The struct member offsets.
    • LEN

      public static final int LEN
      The struct member offsets.
    • COVERAGE

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

    • FT_Span

      public FT_Span(ByteBuffer container)
      Creates a FT_Span 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_Span>
    • x

      public short x()
      Returns:
      the value of the x field.
    • len

      public short len()
      Returns:
      the value of the len field.
    • coverage

      public byte coverage()
      Returns:
      the value of the coverage field.
    • create

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

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

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

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

      public static short nx(long struct)
      Unsafe version of x().
    • nlen

      public static short nlen(long struct)
      Unsafe version of len().
    • ncoverage

      public static byte ncoverage(long struct)
      Unsafe version of coverage().