Class CXIndexOptions.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<CXIndexOptions>, NativeResource, Pointer
Enclosing class:
CXIndexOptions

public static class CXIndexOptions.Buffer extends StructBuffer<CXIndexOptions,CXIndexOptions.Buffer> implements NativeResource
An array of CXIndexOptions structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CXIndexOptions.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by CXIndexOptions.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • Size

      public int Size()
      Returns:
      the value of the Size field.
    • ThreadBackgroundPriorityForIndexing

      public byte ThreadBackgroundPriorityForIndexing()
      Returns:
      the value of the ThreadBackgroundPriorityForIndexing field.
    • ThreadBackgroundPriorityForEditing

      public byte ThreadBackgroundPriorityForEditing()
      Returns:
      the value of the ThreadBackgroundPriorityForEditing field.
    • ExcludeDeclarationsFromPCH

      public boolean ExcludeDeclarationsFromPCH()
      Returns:
      the value of the ExcludeDeclarationsFromPCH field.
    • DisplayDiagnostics

      public boolean DisplayDiagnostics()
      Returns:
      the value of the DisplayDiagnostics field.
    • StorePreamblesInMemory

      public boolean StorePreamblesInMemory()
      Returns:
      the value of the StorePreamblesInMemory field.
    • PreambleStoragePath

      public @Nullable ByteBuffer PreambleStoragePath()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the PreambleStoragePath field.
    • PreambleStoragePathString

      public @Nullable String PreambleStoragePathString()
      Returns:
      the null-terminated string pointed to by the PreambleStoragePath field.
    • InvocationEmissionPath

      public @Nullable ByteBuffer InvocationEmissionPath()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the InvocationEmissionPath field.
    • InvocationEmissionPathString

      public @Nullable String InvocationEmissionPathString()
      Returns:
      the null-terminated string pointed to by the InvocationEmissionPath field.
    • Size

      public CXIndexOptions.Buffer Size(int value)
      Sets the specified value to the Size field.
    • Size$Default

      public CXIndexOptions.Buffer Size$Default()
      Sets the default value to the Size field.
    • ThreadBackgroundPriorityForIndexing

      public CXIndexOptions.Buffer ThreadBackgroundPriorityForIndexing(byte value)
      Sets the specified value to the ThreadBackgroundPriorityForIndexing field.
    • ThreadBackgroundPriorityForEditing

      public CXIndexOptions.Buffer ThreadBackgroundPriorityForEditing(byte value)
      Sets the specified value to the ThreadBackgroundPriorityForEditing field.
    • ExcludeDeclarationsFromPCH

      public CXIndexOptions.Buffer ExcludeDeclarationsFromPCH(boolean value)
      Sets the specified value to the ExcludeDeclarationsFromPCH field.
    • DisplayDiagnostics

      public CXIndexOptions.Buffer DisplayDiagnostics(boolean value)
      Sets the specified value to the DisplayDiagnostics field.
    • StorePreamblesInMemory

      public CXIndexOptions.Buffer StorePreamblesInMemory(boolean value)
      Sets the specified value to the StorePreamblesInMemory field.
    • PreambleStoragePath

      public CXIndexOptions.Buffer PreambleStoragePath(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the PreambleStoragePath field.
    • InvocationEmissionPath

      public CXIndexOptions.Buffer InvocationEmissionPath(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the InvocationEmissionPath field.