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 TypeMethodDescriptionallocate()
static GLFWallocator
static GLFWallocator.Ptr
void
allocate
(MemorySegment value) static GLFWallocator
clone
(Arena arena, GLFWallocator src) deallocate
(@Nullable IPointer pointer) void
deallocate
(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.reallocate
(@Nullable IPointer pointer) void
reallocate
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.user()
void
user
(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
-
allocate
-
reallocate
-
reallocate
-
reallocate
-
deallocate
-
deallocate
-
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.
-