Class CXSourceRangeList

  • All Implemented Interfaces:
    Pointer

    public class CXSourceRangeList
    extends Struct
    Identifies an array of ranges.

    Member documentation

    • count – the number of ranges in the ranges array
    • ranges – an array of CXSourceRanges.

    Layout

    
     struct CXSourceRangeList {
         unsigned count;
         CXSourceRange * ranges;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • COUNT, RANGES

        The struct member offsets.
    • Constructor Detail

      • CXSourceRangeList

        public CXSourceRangeList​(java.nio.ByteBuffer container)
        Creates a CXSourceRangeList 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 CXSourceRangeList create​(long address)
        Returns a new CXSourceRangeList instance for the specified memory address.
      • createSafe

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

        @Nullable
        public static CXSourceRangeList.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().