Class CXStringSet

  • All Implemented Interfaces:

    public class CXStringSet
    extends Struct


     struct CXStringSet {
         CXString * Strings;
         unsigned Count;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • CXStringSet

        public CXStringSet​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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 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.
        address - the memory address
        capacity - the buffer capacity
      • createSafe

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

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