Record Class CLQueueFamilyPropertiesIntel

java.lang.Object
java.lang.Record
club.doki7.opencl.datatype.CLQueueFamilyPropertiesIntel
All Implemented Interfaces:
IPointer, ICLQueueFamilyPropertiesIntel

@ValueBasedCandidate @UnsafeConstructor public record CLQueueFamilyPropertiesIntel(@NotNull MemorySegment segment) extends Record implements ICLQueueFamilyPropertiesIntel

Represents a pointer to a cl_queue_family_properties_intel structure in native memory.

Structure

typedef struct cl_queue_family_properties_intel {
    cl_command_queue_properties properties;
    cl_command_queue_capabilities_intel capabilities;
    cl_uint count;
    char[CL_QUEUE_FAMILY_MAX_NAME_SIZE_INTEL] name;
} cl_queue_family_properties_intel;

Contracts

The property segment() should always be not-null (segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java null instead. See the documentation of IPointer.segment() for more details.

The constructor of this class is marked as UnsafeConstructor, because it does not perform any runtime check. The constructor can be useful for automatic code generators.

See Also:
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$properties

      public static final MemoryLayout.PathElement PATH$properties
    • PATH$capabilities

      public static final MemoryLayout.PathElement PATH$capabilities
    • PATH$count

      public static final MemoryLayout.PathElement PATH$count
    • PATH$name

      public static final MemoryLayout.PathElement PATH$name
    • LAYOUT$properties

      public static final ValueLayout.OfLong LAYOUT$properties
    • LAYOUT$capabilities

      public static final ValueLayout.OfLong LAYOUT$capabilities
    • LAYOUT$count

      public static final ValueLayout.OfInt LAYOUT$count
    • LAYOUT$name

      public static final SequenceLayout LAYOUT$name
    • SIZE$properties

      public static final long SIZE$properties
    • SIZE$capabilities

      public static final long SIZE$capabilities
    • SIZE$count

      public static final long SIZE$count
    • SIZE$name

      public static final long SIZE$name
    • OFFSET$properties

      public static final long OFFSET$properties
    • OFFSET$capabilities

      public static final long OFFSET$capabilities
    • OFFSET$count

      public static final long OFFSET$count
    • OFFSET$name

      public static final long OFFSET$name
  • Constructor Details

    • CLQueueFamilyPropertiesIntel

      public CLQueueFamilyPropertiesIntel(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a CLQueueFamilyPropertiesIntel record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details