Class CXSourceRangeList

All Implemented Interfaces:
Pointer

public class CXSourceRangeList extends Struct<CXSourceRangeList>
Identifies an array of ranges.

Layout


 struct CXSourceRangeList {
     unsigned count();
     CXSourceRange * ranges();
 }
  • Field Details

    • SIZEOF

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

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

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

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

    • CXSourceRangeList

      public CXSourceRangeList(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<CXSourceRangeList>
    • count

      public int count()
      the number of ranges in the ranges array
    • ranges

      public CXSourceRange.Buffer ranges()
      an array of CXSourceRanges.
    • 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.
    • create

      public static CXSourceRangeList.Buffer create(long address, int capacity)
      Create a CXSourceRangeList.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • 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().
    • nranges

      public static CXSourceRange.Buffer nranges(long struct)
      Unsafe version of ranges().