Class CXSourceRange

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class CXSourceRange extends Struct<CXSourceRange> implements NativeResource
Identifies a half-open character range in the source code.

Use getRangeStart and getRangeEnd to retrieve the starting and end locations from a source range, respectively.

Layout


 struct CXSourceRange {
     void const * ptr_data[2];
     unsigned begin_int_data;
     unsigned end_int_data;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PTR_DATA
      The struct member offsets.
    • BEGIN_INT_DATA

      public static final int BEGIN_INT_DATA
      The struct member offsets.
    • END_INT_DATA

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

    • CXSourceRange

      public CXSourceRange(ByteBuffer container)
      Creates a CXSourceRange 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