Package org.lwjgl.util.remotery
Class RMTSampleIterator
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct rmtSampleIterator {
rmtSample * sample;
rmtSample * initial;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionRMTSampleIterator
(ByteBuffer container) Creates aRMTSampleIterator
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic RMTSampleIterator
calloc()
Returns a newRMTSampleIterator
instance allocated withmemCalloc
.static RMTSampleIterator
calloc
(MemoryStack stack) Returns a newRMTSampleIterator
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RMTSampleIterator
create()
Returns a newRMTSampleIterator
instance allocated withBufferUtils
.static RMTSampleIterator
create
(long address) Returns a newRMTSampleIterator
instance for the specified memory address.static @Nullable RMTSampleIterator
createSafe
(long address) static RMTSampleIterator
malloc()
Returns a newRMTSampleIterator
instance allocated withmemAlloc
.static RMTSampleIterator
malloc
(MemoryStack stack) Returns a newRMTSampleIterator
instance allocated on the specifiedMemoryStack
.static long
ninitial
(long struct) static long
nsample
(long struct) Unsafe version ofsample()
.long
sample()
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SAMPLE
public static final int SAMPLEThe struct member offsets. -
INITIAL
public static final int INITIALThe struct member offsets.
-
-
Constructor Details
-
RMTSampleIterator
Creates aRMTSampleIterator
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<RMTSampleIterator>
-
sample
public long sample()- Returns:
- the value of the
sample
field.
-
malloc
Returns a newRMTSampleIterator
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newRMTSampleIterator
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newRMTSampleIterator
instance allocated withBufferUtils
. -
create
Returns a newRMTSampleIterator
instance for the specified memory address. -
createSafe
-
malloc
Returns a newRMTSampleIterator
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newRMTSampleIterator
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nsample
public static long nsample(long struct) Unsafe version ofsample()
. -
ninitial
public static long ninitial(long struct)
-