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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aRMTSettingsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescription_free()Sets the specified value to the_freefield._malloc()_malloc(RMTMallocI value) Sets the specified value to the_mallocfield.static RMTSettingscalloc()Returns a newRMTSettingsinstance allocated withmemCalloc.static RMTSettingscalloc(MemoryStack stack) Returns a newRMTSettingsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RMTSettingsDeprecated.static RMTSettingscallocStack(MemoryStack stack) Deprecated.static RMTSettingscreate()Returns a newRMTSettingsinstance allocated withBufferUtils.static RMTSettingscreate(long address) Returns a newRMTSettingsinstance for the specified memory address.static @Nullable RMTSettingscreateSafe(long address) booleanenableThreadSampler(boolean value) Sets the specified value to theenableThreadSamplerfield.@Nullable RMTInputHandlerinput_handler(@Nullable RMTInputHandlerI value) Sets the specified value to theinput_handlerfield.longinput_handler_context(long value) Sets the specified value to theinput_handler_contextfield.booleanlimit_connections_to_localhost(boolean value) Sets the specified value to thelimit_connections_to_localhostfield.@Nullable ByteBufferlogPath()logPath(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thelogPathfield.@Nullable Stringstatic RMTSettingsmalloc()Returns a newRMTSettingsinstance allocated withmemAlloc.static RMTSettingsmalloc(MemoryStack stack) Returns a newRMTSettingsinstance allocated on the specifiedMemoryStack.static RMTSettingsDeprecated.static RMTSettingsmallocStack(MemoryStack stack) Deprecated.intmaxNbMessagesPerUpdate(int value) Sets the specified value to themaxNbMessagesPerUpdatefield.intmessageQueueSizeInBytes(int value) Sets the specified value to themessageQueueSizeInBytesfield.longmm_context(long value) Sets the specified value to themm_contextfield.intmsSleepBetweenServerUpdates(int value) Sets the specified value to themsSleepBetweenServerUpdatesfield.static RMTFreen_free(long struct) Unsafe version of_free().static voidUnsafe version of_free.static RMTMallocn_malloc(long struct) Unsafe version of_malloc().static voidn_malloc(long struct, RMTMallocI value) Unsafe version of_malloc.static intnenableThreadSampler(long struct) Unsafe version ofenableThreadSampler().static voidnenableThreadSampler(long struct, int value) Unsafe version ofenableThreadSampler.static @Nullable RMTInputHandlerninput_handler(long struct) Unsafe version ofinput_handler().static voidninput_handler(long struct, @Nullable RMTInputHandlerI value) Unsafe version ofinput_handler.static longninput_handler_context(long struct) Unsafe version ofinput_handler_context().static voidninput_handler_context(long struct, long value) Unsafe version ofinput_handler_context.static intnlimit_connections_to_localhost(long struct) Unsafe version oflimit_connections_to_localhost().static voidnlimit_connections_to_localhost(long struct, int value) Unsafe version oflimit_connections_to_localhost.static @Nullable ByteBuffernlogPath(long struct) Unsafe version oflogPath().static voidnlogPath(long struct, @Nullable ByteBuffer value) Unsafe version oflogPath.static @Nullable StringnlogPathString(long struct) Unsafe version oflogPathString().static intnmaxNbMessagesPerUpdate(long struct) Unsafe version ofmaxNbMessagesPerUpdate().static voidnmaxNbMessagesPerUpdate(long struct, int value) Unsafe version ofmaxNbMessagesPerUpdate.static intnmessageQueueSizeInBytes(long struct) Unsafe version ofmessageQueueSizeInBytes().static voidnmessageQueueSizeInBytes(long struct, int value) Unsafe version ofmessageQueueSizeInBytes.static longnmm_context(long struct) Unsafe version ofmm_context().static voidnmm_context(long struct, long value) Unsafe version ofmm_context.static intnmsSleepBetweenServerUpdates(long struct) Unsafe version ofmsSleepBetweenServerUpdates().static voidnmsSleepBetweenServerUpdates(long struct, int value) Unsafe version ofmsSleepBetweenServerUpdates.static shortnport(long struct) Unsafe version ofport().static voidnport(long struct, short value) Unsafe version ofport.static RMTReallocnrealloc(long struct) Unsafe version ofrealloc().static voidnrealloc(long struct, RMTReallocI value) Unsafe version ofrealloc.static intnreuse_open_port(long struct) Unsafe version ofreuse_open_port().static voidnreuse_open_port(long struct, int value) Unsafe version ofreuse_open_port.static longnsampletree_context(long struct) Unsafe version ofsampletree_context().static voidnsampletree_context(long struct, long value) Unsafe version ofsampletree_context.static @Nullable RMTSampleTreeHandlernsampletree_handler(long struct) Unsafe version ofsampletree_handler().static voidnsampletree_handler(long struct, @Nullable RMTSampleTreeHandlerI value) Unsafe version ofsampletree_handler.static @Nullable RMTPropertyHandlernsnapshot_callback(long struct) Unsafe version ofsnapshot_callback().static voidnsnapshot_callback(long struct, @Nullable RMTPropertyHandlerI value) Unsafe version ofsnapshot_callback.static longnsnapshot_context(long struct) Unsafe version ofsnapshot_context().static voidnsnapshot_context(long struct, long value) Unsafe version ofsnapshot_context.shortport()port(short value) Sets the specified value to theportfield.realloc()realloc(RMTReallocI value) Sets the specified value to thereallocfield.booleanreuse_open_port(boolean value) Sets the specified value to thereuse_open_portfield.longsampletree_context(long value) Sets the specified value to thesampletree_contextfield.@Nullable RMTSampleTreeHandlersampletree_handler(@Nullable RMTSampleTreeHandlerI value) Sets the specified value to thesampletree_handlerfield.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.intsizeof()Returnssizeof(struct).@Nullable RMTPropertyHandlersnapshot_callback(@Nullable RMTPropertyHandlerI value) Sets the specified value to thesnapshot_callbackfield.longsnapshot_context(long value) Sets the specified value to thesnapshot_contextfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
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 aRMTSettingsinstance 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<RMTSettings>
-
port
public short port()- Returns:
- the value of the
portfield.
-
reuse_open_port
public boolean reuse_open_port()- Returns:
- the value of the
reuse_open_portfield.
-
limit_connections_to_localhost
public boolean limit_connections_to_localhost()- Returns:
- the value of the
limit_connections_to_localhostfield.
-
enableThreadSampler
public boolean enableThreadSampler()- Returns:
- the value of the
enableThreadSamplerfield.
-
msSleepBetweenServerUpdates
public int msSleepBetweenServerUpdates()- Returns:
- the value of the
msSleepBetweenServerUpdatesfield.
-
messageQueueSizeInBytes
public int messageQueueSizeInBytes()- Returns:
- the value of the
messageQueueSizeInBytesfield.
-
maxNbMessagesPerUpdate
public int maxNbMessagesPerUpdate()- Returns:
- the value of the
maxNbMessagesPerUpdatefield.
-
_malloc
- Returns:
- the value of the
_mallocfield.
-
realloc
- Returns:
- the value of the
reallocfield.
-
_free
- Returns:
- the value of the
_freefield.
-
mm_context
public long mm_context()- Returns:
- the value of the
mm_contextfield.
-
input_handler
- Returns:
- the value of the
input_handlerfield.
-
sampletree_handler
- Returns:
- the value of the
sampletree_handlerfield.
-
sampletree_context
public long sampletree_context()- Returns:
- the value of the
sampletree_contextfield.
-
snapshot_callback
- Returns:
- the value of the
snapshot_callbackfield.
-
snapshot_context
public long snapshot_context()- Returns:
- the value of the
snapshot_contextfield.
-
input_handler_context
public long input_handler_context()- Returns:
- the value of the
input_handler_contextfield.
-
logPath
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thelogPathfield.
-
logPathString
- Returns:
- the null-terminated string pointed to by the
logPathfield.
-
port
Sets the specified value to theportfield. -
reuse_open_port
Sets the specified value to thereuse_open_portfield. -
limit_connections_to_localhost
Sets the specified value to thelimit_connections_to_localhostfield. -
enableThreadSampler
Sets the specified value to theenableThreadSamplerfield. -
msSleepBetweenServerUpdates
Sets the specified value to themsSleepBetweenServerUpdatesfield. -
messageQueueSizeInBytes
Sets the specified value to themessageQueueSizeInBytesfield. -
maxNbMessagesPerUpdate
Sets the specified value to themaxNbMessagesPerUpdatefield. -
_malloc
Sets the specified value to the_mallocfield. -
realloc
Sets the specified value to thereallocfield. -
_free
Sets the specified value to the_freefield. -
mm_context
Sets the specified value to themm_contextfield. -
input_handler
Sets the specified value to theinput_handlerfield. -
sampletree_handler
Sets the specified value to thesampletree_handlerfield. -
sampletree_context
Sets the specified value to thesampletree_contextfield. -
snapshot_callback
Sets the specified value to thesnapshot_callbackfield. -
snapshot_context
Sets the specified value to thesnapshot_contextfield. -
input_handler_context
Sets the specified value to theinput_handler_contextfield. -
logPath
Sets the address of the specified encoded string to thelogPathfield. -
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 newRMTSettingsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newRMTSettingsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newRMTSettingsinstance allocated withBufferUtils. -
create
Returns a newRMTSettingsinstance 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 newRMTSettingsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newRMTSettingsinstance allocated on the specifiedMemoryStackand 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
-