Class CXStringSet

All Implemented Interfaces:
Pointer

public class CXStringSet extends Struct<CXStringSet>

 struct CXStringSet {
     {@link CXString CXString} * Strings;
     unsigned Count;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int STRINGS
      The struct member offsets.
    • COUNT

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

    • CXStringSet

      public CXStringSet(ByteBuffer container)
      Creates a CXStringSet 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<CXStringSet>
    • Strings

      public CXString.Buffer Strings()
      Returns:
      a CXString.Buffer view of the struct array pointed to by the Strings field.
    • Count

      public int Count()
      Returns:
      the value of the Count field.
    • create

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

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

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

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

      public static CXString.Buffer nStrings(long struct)
      Unsafe version of Strings().
    • nCount

      public static int nCount(long struct)
      Unsafe version of Count().