Class Type.TypeInfo

  • Enclosing class:
    Type

    static final class Type.TypeInfo
    extends java.lang.Object
    This is a lazy loaded cache of builtin type info, so we can still have Type.VOID as a public static variable without it causing the native library to load.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int alignment
      The minimum alignment of this type
      (package private) long handle
      The address of this type's ffi_type structure
      (package private) int size
      The size in bytes of this type
      (package private) int type
      The FFI type of this type
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeInfo​(long handle, int type, int size, int alignment)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        final int type
        The FFI type of this type
      • size

        final int size
        The size in bytes of this type
      • alignment

        final int alignment
        The minimum alignment of this type
      • handle

        final long handle
        The address of this type's ffi_type structure
    • Constructor Detail

      • TypeInfo

        TypeInfo​(long handle,
                 int type,
                 int size,
                 int alignment)