Class CXTUResourceUsage

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class CXTUResourceUsage
    extends Struct
    implements NativeResource
    The memory usage of a CXTranslationUnit, broken into categories.

    Member documentation

    • data – private data member, used for queries
    • numEntries – the number of entries in the entries array.
    • entries – an array of key-value pairs, representing the breakdown of memory usage


     struct CXTUResourceUsage {
         void * data;
         unsigned numEntries;
         CXTUResourceUsageEntry * entries;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • CXTUResourceUsage

        public CXTUResourceUsage​(java.nio.ByteBuffer container)
        Creates a CXTUResourceUsage 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.