Class CXVersion

All Implemented Interfaces:
Pointer

public class CXVersion extends Struct<CXVersion>

 struct CXVersion {
     int Major;
     int Minor;
     int Subminor;
 }
  • Field Details Link icon

    • SIZEOF Link icon

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MAJOR Link icon

      public static final int MAJOR
      The struct member offsets.
    • MINOR Link icon

      public static final int MINOR
      The struct member offsets.
    • SUBMINOR Link icon

      public static final int SUBMINOR
      The struct member offsets.
  • Constructor Details Link icon

    • CXVersion Link icon

      public CXVersion(ByteBuffer container)
      Creates a CXVersion 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 Link icon

    • sizeof Link icon

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<CXVersion>
    • Major Link icon

      public int Major()
      Returns:
      the value of the Major field.
    • Minor Link icon

      public int Minor()
      Returns:
      the value of the Minor field.
    • Subminor Link icon

      public int Subminor()
      Returns:
      the value of the Subminor field.
    • create Link icon

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

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

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

      public static @Nullable CXVersion.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nMajor Link icon

      public static int nMajor(long struct)
      Unsafe version of Major().
    • nMinor Link icon

      public static int nMinor(long struct)
      Unsafe version of Minor().
    • nSubminor Link icon

      public static int nSubminor(long struct)
      Unsafe version of Subminor().