Class FT_CharMap

All Implemented Interfaces:
Pointer

public class FT_CharMap extends Struct<FT_CharMap>

 struct FT_CharMapRec {
     {@link FT_Face FT_Face} face;
     FT_Encoding encoding;
     FT_UShort platform_id;
     FT_UShort encoding_id;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int FACE
      The struct member offsets.
    • ENCODING

      public static final int ENCODING
      The struct member offsets.
    • PLATFORM_ID

      public static final int PLATFORM_ID
      The struct member offsets.
    • ENCODING_ID

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

    • FT_CharMap

      public FT_CharMap(ByteBuffer container)
      Creates a FT_CharMap 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_CharMap>
    • face

      public FT_Face face()
      Returns:
      a FT_Face view of the struct pointed to by the face field.
    • encoding

      public int encoding()
      Returns:
      the value of the encoding field.
    • platform_id

      public short platform_id()
      Returns:
      the value of the platform_id field.
    • encoding_id

      public short encoding_id()
      Returns:
      the value of the encoding_id field.
    • create

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

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

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

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

      public static FT_Face nface(long struct)
      Unsafe version of face().
    • nencoding

      public static int nencoding(long struct)
      Unsafe version of encoding().
    • nplatform_id

      public static short nplatform_id(long struct)
      Unsafe version of platform_id().
    • nencoding_id

      public static short nencoding_id(long struct)
      Unsafe version of encoding_id().