Class hwloc_cache_attr_s

All Implemented Interfaces:
Pointer

public class hwloc_cache_attr_s extends Struct<hwloc_cache_attr_s>

 struct hwloc_cache_attr_s {
     hwloc_uint64_t size;
     unsigned depth;
     unsigned linesize;
     int associativity;
     hwloc_obj_cache_type_t type;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SIZE
      The struct member offsets.
    • DEPTH

      public static final int DEPTH
      The struct member offsets.
    • LINESIZE

      public static final int LINESIZE
      The struct member offsets.
    • ASSOCIATIVITY

      public static final int ASSOCIATIVITY
      The struct member offsets.
    • TYPE

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

    • hwloc_cache_attr_s

      public hwloc_cache_attr_s(ByteBuffer container)
      Creates a hwloc_cache_attr_s 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<hwloc_cache_attr_s>
    • size

      public long size()
      Returns:
      the value of the size field.
    • depth

      public int depth()
      Returns:
      the value of the depth field.
    • linesize

      public int linesize()
      Returns:
      the value of the linesize field.
    • associativity

      public int associativity()
      Returns:
      the value of the associativity field.
    • type

      public int type()
      Returns:
      the value of the type field.
    • create

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

      public static @Nullable hwloc_cache_attr_s createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static hwloc_cache_attr_s.Buffer create(long address, int capacity)
      Create a hwloc_cache_attr_s.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable hwloc_cache_attr_s.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nsize

      public static long nsize(long struct)
      Unsafe version of size().
    • ndepth

      public static int ndepth(long struct)
      Unsafe version of depth().
    • nlinesize

      public static int nlinesize(long struct)
      Unsafe version of linesize().
    • nassociativity

      public static int nassociativity(long struct)
      Unsafe version of associativity().
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().