java.lang.Object
java.lang.Record
club.doki7.ffm.ptr.WCharPtr
@ValueBasedCandidate
@UnsafeConstructor
public record WCharPtr(@NotNull MemorySegment segment)
extends Record
implements IPointer, Iterable<Integer>
-
Constructor Summary
ConstructorsConstructorDescriptionWCharPtr(@NotNull MemorySegment segment) Creates an instance of aWCharPtrrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull WCharPtrstatic @NotNull WCharPtrstatic @NotNull WCharPtrallocateWString(@NotNull Arena arena, @NotNull String string) static @Nullable WCharPtrchecked(@NotNull MemorySegment segment) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.iterator()@NotNull WCharPtroffset(long offset) intread()intread(long index) @NotNull String@NotNull String@NotNull WCharPtrreinterpret(long newSize) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.longsize()@NotNull WCharPtrslice(long end) @NotNull WCharPtrslice(long start, long end) final StringtoString()Returns a string representation of this record class.voidwrite(int value) voidwrite(long index, int value) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
WCharPtr
Creates an instance of aWCharPtrrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
size
public long size() -
read
public int read() -
write
public void write(int value) -
read
public int read(long index) -
write
public void write(long index, int value) -
readWStringSafe
-
readWString
-
reinterpret
-
offset
-
slice
-
slice
-
iterator
-
checked
-
allocate
-
allocate
-
allocateWString
-
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.
-