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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aRMTSampleIteratorinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic RMTSampleIteratorcalloc()Returns a newRMTSampleIteratorinstance allocated withmemCalloc.static RMTSampleIteratorcalloc(MemoryStack stack) Returns a newRMTSampleIteratorinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RMTSampleIteratorcreate()Returns a newRMTSampleIteratorinstance allocated withBufferUtils.static RMTSampleIteratorcreate(long address) Returns a newRMTSampleIteratorinstance for the specified memory address.static @Nullable RMTSampleIteratorcreateSafe(long address) static RMTSampleIteratormalloc()Returns a newRMTSampleIteratorinstance allocated withmemAlloc.static RMTSampleIteratormalloc(MemoryStack stack) Returns a newRMTSampleIteratorinstance allocated on the specifiedMemoryStack.static longninitial(long struct) static longnsample(long struct) Unsafe version ofsample().longsample()intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aRMTSampleIteratorinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<RMTSampleIterator>
-
sample
public long sample()- Returns:
- the value of the
samplefield.
-
malloc
Returns a newRMTSampleIteratorinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newRMTSampleIteratorinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newRMTSampleIteratorinstance allocated withBufferUtils. -
create
Returns a newRMTSampleIteratorinstance for the specified memory address. -
createSafe
-
malloc
Returns a newRMTSampleIteratorinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newRMTSampleIteratorinstance allocated on the specifiedMemoryStackand 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)
-