java.lang.Object
java.lang.Record
club.doki7.opencl.datatype.CLNameVersionKhr
- All Implemented Interfaces:
club.doki7.ffm.IPointer,ICLNameVersionKhr
@ValueBasedCandidate
@UnsafeConstructor
public record CLNameVersionKhr(@NotNull MemorySegment segment)
extends Record
implements ICLNameVersionKhr
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final SequenceLayoutstatic final ValueLayout.OfIntstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionCLNameVersionKhr(@NotNull MemorySegment segment) Creates an instance of aCLNameVersionKhrrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLNameVersionKhrstatic CLNameVersionKhr.Ptrstatic CLNameVersionKhrclone(Arena arena, CLNameVersionKhr src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.club.doki7.ffm.ptr.BytePtrname()name(club.doki7.ffm.ptr.BytePtr value) @NotNull MemorySegmentnameRaw()@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.intversion()version(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$version
-
PATH$name
-
LAYOUT$version
-
LAYOUT$name
-
SIZE$version
public static final long SIZE$version -
SIZE$name
public static final long SIZE$name -
OFFSET$version
public static final long OFFSET$version -
OFFSET$name
public static final long OFFSET$name
-
-
Constructor Details
-
CLNameVersionKhr
Creates an instance of aCLNameVersionKhrrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
version
@NativeType("cl_version_khr") @Unsigned public int version() -
version
-
name
public club.doki7.ffm.ptr.BytePtr name() -
name
-
name
-
nameRaw
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
segment
Returns the value of thesegmentrecord component.- Specified by:
segmentin interfaceclub.doki7.ffm.IPointer- Returns:
- the value of the
segmentrecord component
-