Class CXTUResourceUsageEntry

  • All Implemented Interfaces:

    public class CXTUResourceUsageEntry
    extends Struct

    Member documentation

    • kind – the memory usage category
    • amount – amount of resources used. The units will depend on the resource kind.


     struct CXTUResourceUsageEntry {
         enum CXTUResourceUsageKind kind;
         unsigned long amount;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • KIND, AMOUNT

        The struct member offsets.
    • Constructor Detail

      • CXTUResourceUsageEntry

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

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • kind

        public int kind()
        Returns the value of the kind field.
      • amount

        public long amount()
        Returns the value of the amount field.
      • create

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

        public static CXTUResourceUsageEntry createSafe​(long address)
        Like create, but returns null if address is NULL.
      • nkind

        public static int nkind​(long struct)
        Unsafe version of kind().
      • namount

        public static long namount​(long struct)
        Unsafe version of amount().