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 record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionGLFWallocator
(@NotNull MemorySegment segment) Creates an instance of aGLFWallocator
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull MemorySegment
allocate()
allocate
(@NotNull GLFWFunctionTypes.IGLFWallocatefun value) allocate
(@NotNull Arena arena, @NotNull GLFWFunctionTypes.IGLFWallocatefun value) allocate
(@NotNull MemorySegment value) static GLFWallocator
static GLFWallocator.Ptr
static GLFWallocator
clone
(Arena arena, GLFWallocator src) @NotNull MemorySegment
deallocate
(@Nullable IPointer pointer) deallocate
(@NotNull GLFWFunctionTypes.IGLFWdeallocatefun value) deallocate
(@NotNull Arena arena, @NotNull GLFWFunctionTypes.IGLFWdeallocatefun value) deallocate
(@NotNull MemorySegment value) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull MemorySegment
reallocate
(@Nullable IPointer pointer) reallocate
(@NotNull GLFWFunctionTypes.IGLFWreallocatefun value) reallocate
(@NotNull Arena arena, @NotNull GLFWFunctionTypes.IGLFWreallocatefun value) reallocate
(@NotNull MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.@NotNull MemorySegment
user()
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 aGLFWallocator
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-