Record Class GLFWallocator
java.lang.Object
java.lang.Record
club.doki7.glfw.datatype.GLFWallocator
- All Implemented Interfaces:
IPointer,IGLFWallocator
@ValueBasedCandidate
@UnsafeConstructor
public record GLFWallocator(@NotNull MemorySegment segment)
extends Record
implements IGLFWallocator
- Since:
- Added in version 3.4.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionGLFWallocator(@NotNull MemorySegment segment) Creates an instance of aGLFWallocatorrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull MemorySegmentallocate()allocate(@NotNull GLFWFunctionTypes.IGLFWallocatefun value) allocate(@NotNull Arena arena, @NotNull GLFWFunctionTypes.IGLFWallocatefun value) allocate(@NotNull MemorySegment value) static GLFWallocatorstatic GLFWallocator.Ptrstatic GLFWallocatorclone(Arena arena, GLFWallocator src) @NotNull MemorySegmentdeallocate(@Nullable IPointer pointer) deallocate(@NotNull GLFWFunctionTypes.IGLFWdeallocatefun value) deallocate(@NotNull Arena arena, @NotNull GLFWFunctionTypes.IGLFWdeallocatefun value) deallocate(@NotNull MemorySegment value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentreallocate(@Nullable IPointer pointer) reallocate(@NotNull GLFWFunctionTypes.IGLFWreallocatefun value) reallocate(@NotNull Arena arena, @NotNull GLFWFunctionTypes.IGLFWreallocatefun value) reallocate(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.@NotNull MemorySegmentuser()user(@NotNull MemorySegment value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$allocate
-
PATH$reallocate
-
PATH$deallocate
-
PATH$user
-
LAYOUT$allocate
-
LAYOUT$reallocate
-
LAYOUT$deallocate
-
LAYOUT$user
-
SIZE$allocate
public static final long SIZE$allocate -
SIZE$reallocate
public static final long SIZE$reallocate -
SIZE$deallocate
public static final long SIZE$deallocate -
SIZE$user
public static final long SIZE$user -
OFFSET$allocate
public static final long OFFSET$allocate -
OFFSET$reallocate
public static final long OFFSET$reallocate -
OFFSET$deallocate
public static final long OFFSET$deallocate -
OFFSET$user
public static final long OFFSET$user
-
-
Constructor Details
-
GLFWallocator
Creates an instance of aGLFWallocatorrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
allocate
-
allocate
public GLFWallocator allocate(@Pointer(comment="GLFWallocatefun") @NotNull @NotNull MemorySegment value) -
allocate
-
allocate
public GLFWallocator allocate(@NotNull @NotNull Arena arena, @NotNull @NotNull GLFWFunctionTypes.IGLFWallocatefun value) -
allocate
-
reallocate
-
reallocate
public GLFWallocator reallocate(@Pointer(comment="GLFWreallocatefun") @NotNull @NotNull MemorySegment value) -
reallocate
-
reallocate
public GLFWallocator reallocate(@NotNull @NotNull Arena arena, @NotNull @NotNull GLFWFunctionTypes.IGLFWreallocatefun value) -
reallocate
-
deallocate
-
deallocate
public GLFWallocator deallocate(@Pointer(comment="GLFWdeallocatefun") @NotNull @NotNull MemorySegment value) -
deallocate
-
deallocate
public GLFWallocator deallocate(@NotNull @NotNull Arena arena, @NotNull @NotNull GLFWFunctionTypes.IGLFWdeallocatefun value) -
deallocate
-
user
-
user
-
user
-
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.
-