Class CXSourceRangeList

All Implemented Interfaces:
Pointer

public class CXSourceRangeList extends Struct<CXSourceRangeList>

 struct CXSourceRangeList {
     unsigned count;
     {@link CXSourceRange 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()
      Returns:
      the value of the count field.
    • ranges

      public CXSourceRange.Buffer ranges()
      Returns:
      a CXSourceRange.Buffer view of the struct array pointed to by the ranges field.
    • create

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

      public static @Nullable 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

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