Package org.lwjgl.util.remotery
Class RMTSettings
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct rmtSettings {
rmtU16 port;
rmtBool reuse_open_port;
rmtBool limit_connections_to_localhost;
rmtBool enableThreadSampler;
rmtU32 msSleepBetweenServerUpdates;
rmtU32 messageQueueSizeInBytes;
rmtU32 maxNbMessagesPerUpdate;
{@link RMTMallocI rmtMallocPtr} _malloc;
{@link RMTReallocI rmtReallocPtr} realloc;
{@link RMTFreeI rmtFreePtr} _free;
void * mm_context;
{@link RMTInputHandlerI rmtInputHandlerPtr} input_handler;
{@link RMTSampleTreeHandlerI rmtSampleTreeHandlerPtr} sampletree_handler;
void * sampletree_context;
{@link RMTPropertyHandlerI rmtPropertyHandlerPtr} snapshot_callback;
void * snapshot_context;
void * input_handler_context;
rmtPStr logPath;
}
-
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 member offsets.static final int
The struct member offsets.static 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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionRMTSettings
(ByteBuffer container) Creates aRMTSettings
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescription_free()
Sets the specified value to the_free
field._malloc()
_malloc
(RMTMallocI value) Sets the specified value to the_malloc
field.static RMTSettings
calloc()
Returns a newRMTSettings
instance allocated withmemCalloc
.static RMTSettings
calloc
(MemoryStack stack) Returns a newRMTSettings
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RMTSettings
Deprecated.static RMTSettings
callocStack
(MemoryStack stack) Deprecated.static RMTSettings
create()
Returns a newRMTSettings
instance allocated withBufferUtils
.static RMTSettings
create
(long address) Returns a newRMTSettings
instance for the specified memory address.static @Nullable RMTSettings
createSafe
(long address) boolean
enableThreadSampler
(boolean value) Sets the specified value to theenableThreadSampler
field.@Nullable RMTInputHandler
input_handler
(@Nullable RMTInputHandlerI value) Sets the specified value to theinput_handler
field.long
input_handler_context
(long value) Sets the specified value to theinput_handler_context
field.boolean
limit_connections_to_localhost
(boolean value) Sets the specified value to thelimit_connections_to_localhost
field.@Nullable ByteBuffer
logPath()
logPath
(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thelogPath
field.@Nullable String
static RMTSettings
malloc()
Returns a newRMTSettings
instance allocated withmemAlloc
.static RMTSettings
malloc
(MemoryStack stack) Returns a newRMTSettings
instance allocated on the specifiedMemoryStack
.static RMTSettings
Deprecated.static RMTSettings
mallocStack
(MemoryStack stack) Deprecated.int
maxNbMessagesPerUpdate
(int value) Sets the specified value to themaxNbMessagesPerUpdate
field.int
messageQueueSizeInBytes
(int value) Sets the specified value to themessageQueueSizeInBytes
field.long
mm_context
(long value) Sets the specified value to themm_context
field.int
msSleepBetweenServerUpdates
(int value) Sets the specified value to themsSleepBetweenServerUpdates
field.static RMTFree
n_free
(long struct) Unsafe version of_free()
.static void
Unsafe version of_free
.static RMTMalloc
n_malloc
(long struct) Unsafe version of_malloc()
.static void
n_malloc
(long struct, RMTMallocI value) Unsafe version of_malloc
.static int
nenableThreadSampler
(long struct) Unsafe version ofenableThreadSampler()
.static void
nenableThreadSampler
(long struct, int value) Unsafe version ofenableThreadSampler
.static @Nullable RMTInputHandler
ninput_handler
(long struct) Unsafe version ofinput_handler()
.static void
ninput_handler
(long struct, @Nullable RMTInputHandlerI value) Unsafe version ofinput_handler
.static long
ninput_handler_context
(long struct) Unsafe version ofinput_handler_context()
.static void
ninput_handler_context
(long struct, long value) Unsafe version ofinput_handler_context
.static int
nlimit_connections_to_localhost
(long struct) Unsafe version oflimit_connections_to_localhost()
.static void
nlimit_connections_to_localhost
(long struct, int value) Unsafe version oflimit_connections_to_localhost
.static @Nullable ByteBuffer
nlogPath
(long struct) Unsafe version oflogPath()
.static void
nlogPath
(long struct, @Nullable ByteBuffer value) Unsafe version oflogPath
.static @Nullable String
nlogPathString
(long struct) Unsafe version oflogPathString()
.static int
nmaxNbMessagesPerUpdate
(long struct) Unsafe version ofmaxNbMessagesPerUpdate()
.static void
nmaxNbMessagesPerUpdate
(long struct, int value) Unsafe version ofmaxNbMessagesPerUpdate
.static int
nmessageQueueSizeInBytes
(long struct) Unsafe version ofmessageQueueSizeInBytes()
.static void
nmessageQueueSizeInBytes
(long struct, int value) Unsafe version ofmessageQueueSizeInBytes
.static long
nmm_context
(long struct) Unsafe version ofmm_context()
.static void
nmm_context
(long struct, long value) Unsafe version ofmm_context
.static int
nmsSleepBetweenServerUpdates
(long struct) Unsafe version ofmsSleepBetweenServerUpdates()
.static void
nmsSleepBetweenServerUpdates
(long struct, int value) Unsafe version ofmsSleepBetweenServerUpdates
.static short
nport
(long struct) Unsafe version ofport()
.static void
nport
(long struct, short value) Unsafe version ofport
.static RMTRealloc
nrealloc
(long struct) Unsafe version ofrealloc()
.static void
nrealloc
(long struct, RMTReallocI value) Unsafe version ofrealloc
.static int
nreuse_open_port
(long struct) Unsafe version ofreuse_open_port()
.static void
nreuse_open_port
(long struct, int value) Unsafe version ofreuse_open_port
.static long
nsampletree_context
(long struct) Unsafe version ofsampletree_context()
.static void
nsampletree_context
(long struct, long value) Unsafe version ofsampletree_context
.static @Nullable RMTSampleTreeHandler
nsampletree_handler
(long struct) Unsafe version ofsampletree_handler()
.static void
nsampletree_handler
(long struct, @Nullable RMTSampleTreeHandlerI value) Unsafe version ofsampletree_handler
.static @Nullable RMTPropertyHandler
nsnapshot_callback
(long struct) Unsafe version ofsnapshot_callback()
.static void
nsnapshot_callback
(long struct, @Nullable RMTPropertyHandlerI value) Unsafe version ofsnapshot_callback
.static long
nsnapshot_context
(long struct) Unsafe version ofsnapshot_context()
.static void
nsnapshot_context
(long struct, long value) Unsafe version ofsnapshot_context
.short
port()
port
(short value) Sets the specified value to theport
field.realloc()
realloc
(RMTReallocI value) Sets the specified value to therealloc
field.boolean
reuse_open_port
(boolean value) Sets the specified value to thereuse_open_port
field.long
sampletree_context
(long value) Sets the specified value to thesampletree_context
field.@Nullable RMTSampleTreeHandler
sampletree_handler
(@Nullable RMTSampleTreeHandlerI value) Sets the specified value to thesampletree_handler
field.set
(short port, boolean reuse_open_port, boolean limit_connections_to_localhost, boolean enableThreadSampler, int msSleepBetweenServerUpdates, int messageQueueSizeInBytes, int maxNbMessagesPerUpdate, RMTMallocI _malloc, RMTReallocI realloc, RMTFreeI _free, long mm_context, @Nullable RMTInputHandlerI input_handler, @Nullable RMTSampleTreeHandlerI sampletree_handler, long sampletree_context, @Nullable RMTPropertyHandlerI snapshot_callback, long snapshot_context, long input_handler_context, @Nullable ByteBuffer logPath) Initializes this struct with the specified values.set
(RMTSettings src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.@Nullable RMTPropertyHandler
snapshot_callback
(@Nullable RMTPropertyHandlerI value) Sets the specified value to thesnapshot_callback
field.long
snapshot_context
(long value) Sets the specified value to thesnapshot_context
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
PORT
public static final int PORTThe struct member offsets. -
REUSE_OPEN_PORT
public static final int REUSE_OPEN_PORTThe struct member offsets. -
LIMIT_CONNECTIONS_TO_LOCALHOST
public static final int LIMIT_CONNECTIONS_TO_LOCALHOSTThe struct member offsets. -
ENABLETHREADSAMPLER
public static final int ENABLETHREADSAMPLERThe struct member offsets. -
MSSLEEPBETWEENSERVERUPDATES
public static final int MSSLEEPBETWEENSERVERUPDATESThe struct member offsets. -
MESSAGEQUEUESIZEINBYTES
public static final int MESSAGEQUEUESIZEINBYTESThe struct member offsets. -
MAXNBMESSAGESPERUPDATE
public static final int MAXNBMESSAGESPERUPDATEThe struct member offsets. -
_MALLOC
public static final int _MALLOCThe struct member offsets. -
REALLOC
public static final int REALLOCThe struct member offsets. -
_FREE
public static final int _FREEThe struct member offsets. -
MM_CONTEXT
public static final int MM_CONTEXTThe struct member offsets. -
INPUT_HANDLER
public static final int INPUT_HANDLERThe struct member offsets. -
SAMPLETREE_HANDLER
public static final int SAMPLETREE_HANDLERThe struct member offsets. -
SAMPLETREE_CONTEXT
public static final int SAMPLETREE_CONTEXTThe struct member offsets. -
SNAPSHOT_CALLBACK
public static final int SNAPSHOT_CALLBACKThe struct member offsets. -
SNAPSHOT_CONTEXT
public static final int SNAPSHOT_CONTEXTThe struct member offsets. -
INPUT_HANDLER_CONTEXT
public static final int INPUT_HANDLER_CONTEXTThe struct member offsets. -
LOGPATH
public static final int LOGPATHThe struct member offsets.
-
-
Constructor Details
-
RMTSettings
Creates aRMTSettings
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<RMTSettings>
-
port
public short port()- Returns:
- the value of the
port
field.
-
reuse_open_port
public boolean reuse_open_port()- Returns:
- the value of the
reuse_open_port
field.
-
limit_connections_to_localhost
public boolean limit_connections_to_localhost()- Returns:
- the value of the
limit_connections_to_localhost
field.
-
enableThreadSampler
public boolean enableThreadSampler()- Returns:
- the value of the
enableThreadSampler
field.
-
msSleepBetweenServerUpdates
public int msSleepBetweenServerUpdates()- Returns:
- the value of the
msSleepBetweenServerUpdates
field.
-
messageQueueSizeInBytes
public int messageQueueSizeInBytes()- Returns:
- the value of the
messageQueueSizeInBytes
field.
-
maxNbMessagesPerUpdate
public int maxNbMessagesPerUpdate()- Returns:
- the value of the
maxNbMessagesPerUpdate
field.
-
_malloc
- Returns:
- the value of the
_malloc
field.
-
realloc
- Returns:
- the value of the
realloc
field.
-
_free
- Returns:
- the value of the
_free
field.
-
mm_context
public long mm_context()- Returns:
- the value of the
mm_context
field.
-
input_handler
- Returns:
- the value of the
input_handler
field.
-
sampletree_handler
- Returns:
- the value of the
sampletree_handler
field.
-
sampletree_context
public long sampletree_context()- Returns:
- the value of the
sampletree_context
field.
-
snapshot_callback
- Returns:
- the value of the
snapshot_callback
field.
-
snapshot_context
public long snapshot_context()- Returns:
- the value of the
snapshot_context
field.
-
input_handler_context
public long input_handler_context()- Returns:
- the value of the
input_handler_context
field.
-
logPath
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thelogPath
field.
-
logPathString
- Returns:
- the null-terminated string pointed to by the
logPath
field.
-
port
Sets the specified value to theport
field. -
reuse_open_port
Sets the specified value to thereuse_open_port
field. -
limit_connections_to_localhost
Sets the specified value to thelimit_connections_to_localhost
field. -
enableThreadSampler
Sets the specified value to theenableThreadSampler
field. -
msSleepBetweenServerUpdates
Sets the specified value to themsSleepBetweenServerUpdates
field. -
messageQueueSizeInBytes
Sets the specified value to themessageQueueSizeInBytes
field. -
maxNbMessagesPerUpdate
Sets the specified value to themaxNbMessagesPerUpdate
field. -
_malloc
Sets the specified value to the_malloc
field. -
realloc
Sets the specified value to therealloc
field. -
_free
Sets the specified value to the_free
field. -
mm_context
Sets the specified value to themm_context
field. -
input_handler
Sets the specified value to theinput_handler
field. -
sampletree_handler
Sets the specified value to thesampletree_handler
field. -
sampletree_context
Sets the specified value to thesampletree_context
field. -
snapshot_callback
Sets the specified value to thesnapshot_callback
field. -
snapshot_context
Sets the specified value to thesnapshot_context
field. -
input_handler_context
Sets the specified value to theinput_handler_context
field. -
logPath
Sets the address of the specified encoded string to thelogPath
field. -
set
public RMTSettings set(short port, boolean reuse_open_port, boolean limit_connections_to_localhost, boolean enableThreadSampler, int msSleepBetweenServerUpdates, int messageQueueSizeInBytes, int maxNbMessagesPerUpdate, RMTMallocI _malloc, RMTReallocI realloc, RMTFreeI _free, long mm_context, @Nullable RMTInputHandlerI input_handler, @Nullable RMTSampleTreeHandlerI sampletree_handler, long sampletree_context, @Nullable RMTPropertyHandlerI snapshot_callback, long snapshot_context, long input_handler_context, @Nullable ByteBuffer logPath) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newRMTSettings
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newRMTSettings
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newRMTSettings
instance allocated withBufferUtils
. -
create
Returns a newRMTSettings
instance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
malloc
Returns a newRMTSettings
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newRMTSettings
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nport
public static short nport(long struct) Unsafe version ofport()
. -
nreuse_open_port
public static int nreuse_open_port(long struct) Unsafe version ofreuse_open_port()
. -
nlimit_connections_to_localhost
public static int nlimit_connections_to_localhost(long struct) Unsafe version oflimit_connections_to_localhost()
. -
nenableThreadSampler
public static int nenableThreadSampler(long struct) Unsafe version ofenableThreadSampler()
. -
nmsSleepBetweenServerUpdates
public static int nmsSleepBetweenServerUpdates(long struct) Unsafe version ofmsSleepBetweenServerUpdates()
. -
nmessageQueueSizeInBytes
public static int nmessageQueueSizeInBytes(long struct) Unsafe version ofmessageQueueSizeInBytes()
. -
nmaxNbMessagesPerUpdate
public static int nmaxNbMessagesPerUpdate(long struct) Unsafe version ofmaxNbMessagesPerUpdate()
. -
n_malloc
Unsafe version of_malloc()
. -
nrealloc
Unsafe version ofrealloc()
. -
n_free
Unsafe version of_free()
. -
nmm_context
public static long nmm_context(long struct) Unsafe version ofmm_context()
. -
ninput_handler
Unsafe version ofinput_handler()
. -
nsampletree_handler
Unsafe version ofsampletree_handler()
. -
nsampletree_context
public static long nsampletree_context(long struct) Unsafe version ofsampletree_context()
. -
nsnapshot_callback
Unsafe version ofsnapshot_callback()
. -
nsnapshot_context
public static long nsnapshot_context(long struct) Unsafe version ofsnapshot_context()
. -
ninput_handler_context
public static long ninput_handler_context(long struct) Unsafe version ofinput_handler_context()
. -
nlogPath
Unsafe version oflogPath()
. -
nlogPathString
Unsafe version oflogPathString()
. -
nport
public static void nport(long struct, short value) Unsafe version ofport
. -
nreuse_open_port
public static void nreuse_open_port(long struct, int value) Unsafe version ofreuse_open_port
. -
nlimit_connections_to_localhost
public static void nlimit_connections_to_localhost(long struct, int value) Unsafe version oflimit_connections_to_localhost
. -
nenableThreadSampler
public static void nenableThreadSampler(long struct, int value) Unsafe version ofenableThreadSampler
. -
nmsSleepBetweenServerUpdates
public static void nmsSleepBetweenServerUpdates(long struct, int value) Unsafe version ofmsSleepBetweenServerUpdates
. -
nmessageQueueSizeInBytes
public static void nmessageQueueSizeInBytes(long struct, int value) Unsafe version ofmessageQueueSizeInBytes
. -
nmaxNbMessagesPerUpdate
public static void nmaxNbMessagesPerUpdate(long struct, int value) Unsafe version ofmaxNbMessagesPerUpdate
. -
n_malloc
Unsafe version of_malloc
. -
nrealloc
Unsafe version ofrealloc
. -
n_free
Unsafe version of_free
. -
nmm_context
public static void nmm_context(long struct, long value) Unsafe version ofmm_context
. -
ninput_handler
Unsafe version ofinput_handler
. -
nsampletree_handler
Unsafe version ofsampletree_handler
. -
nsampletree_context
public static void nsampletree_context(long struct, long value) Unsafe version ofsampletree_context
. -
nsnapshot_callback
Unsafe version ofsnapshot_callback
. -
nsnapshot_context
public static void nsnapshot_context(long struct, long value) Unsafe version ofsnapshot_context
. -
ninput_handler_context
public static void ninput_handler_context(long struct, long value) Unsafe version ofinput_handler_context
. -
nlogPath
Unsafe version oflogPath
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-