WPILibC++  2019.1.1-beta-2-36-g3d54642
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Utility Functions

Functions

void NT_DisposeValue (struct NT_Value *value)
 Frees value memory. More...
 
void NT_InitValue (struct NT_Value *value)
 Initializes a NT_Value. More...
 
void NT_DisposeString (struct NT_String *str)
 Frees string memory. More...
 
void NT_InitString (struct NT_String *str)
 Initializes a NT_String. More...
 
void NT_DisposeEntryArray (NT_Entry *arr, size_t count)
 Disposes an entry handle array. More...
 
void NT_DisposeConnectionInfoArray (struct NT_ConnectionInfo *arr, size_t count)
 Disposes a connection info array. More...
 
void NT_DisposeEntryInfoArray (struct NT_EntryInfo *arr, size_t count)
 Disposes an entry info array. More...
 
void NT_DisposeEntryInfo (struct NT_EntryInfo *info)
 Disposes a single entry info (as returned by NT_GetEntryInfoHandle). More...
 
void NT_DisposeRpcDefinition (struct NT_RpcDefinition *def)
 Disposes a Rpc Definition structure. More...
 
void NT_DisposeRpcAnswerArray (struct NT_RpcAnswer *arr, size_t count)
 Disposes a Rpc Answer array. More...
 
void NT_DisposeRpcAnswer (struct NT_RpcAnswer *answer)
 Disposes a Rpc Answer structure. More...
 
void NT_DisposeEntryNotificationArray (struct NT_EntryNotification *arr, size_t count)
 Disposes an entry notification array. More...
 
void NT_DisposeEntryNotification (struct NT_EntryNotification *info)
 Disposes a single entry notification. More...
 
void NT_DisposeConnectionNotificationArray (struct NT_ConnectionNotification *arr, size_t count)
 Disposes a connection notification array. More...
 
void NT_DisposeConnectionNotification (struct NT_ConnectionNotification *info)
 Disposes a single connection notification. More...
 
void NT_DisposeLogMessageArray (struct NT_LogMessage *arr, size_t count)
 Disposes a log message array. More...
 
void NT_DisposeLogMessage (struct NT_LogMessage *info)
 Disposes a single log message. More...
 
uint64_t NT_Now (void)
 Returns monotonic current time in 1 us increments. More...
 

Detailed Description

Function Documentation

void NT_DisposeConnectionInfoArray ( struct NT_ConnectionInfo arr,
size_t  count 
)

Disposes a connection info array.

Parameters
arrpointer to the array to dispose
countnumber of elements in the array
void NT_DisposeConnectionNotification ( struct NT_ConnectionNotification info)

Disposes a single connection notification.

Parameters
infopointer to the info to dispose
void NT_DisposeConnectionNotificationArray ( struct NT_ConnectionNotification arr,
size_t  count 
)

Disposes a connection notification array.

Parameters
arrpointer to the array to dispose
countnumber of elements in the array
void NT_DisposeEntryArray ( NT_Entry *  arr,
size_t  count 
)

Disposes an entry handle array.

Parameters
arrpointer to the array to dispose
countnumber of elements in the array
void NT_DisposeEntryInfo ( struct NT_EntryInfo info)

Disposes a single entry info (as returned by NT_GetEntryInfoHandle).

Parameters
infopointer to the info to dispose
void NT_DisposeEntryInfoArray ( struct NT_EntryInfo arr,
size_t  count 
)

Disposes an entry info array.

Parameters
arrpointer to the array to dispose
countnumber of elements in the array
void NT_DisposeEntryNotification ( struct NT_EntryNotification info)

Disposes a single entry notification.

Parameters
infopointer to the info to dispose
void NT_DisposeEntryNotificationArray ( struct NT_EntryNotification arr,
size_t  count 
)

Disposes an entry notification array.

Parameters
arrpointer to the array to dispose
countnumber of elements in the array
void NT_DisposeLogMessage ( struct NT_LogMessage info)

Disposes a single log message.

Parameters
infopointer to the info to dispose
void NT_DisposeLogMessageArray ( struct NT_LogMessage arr,
size_t  count 
)

Disposes a log message array.

Parameters
arrpointer to the array to dispose
countnumber of elements in the array
void NT_DisposeRpcAnswer ( struct NT_RpcAnswer answer)

Disposes a Rpc Answer structure.

Parameters
answerpointer to the struct to dispose
void NT_DisposeRpcAnswerArray ( struct NT_RpcAnswer arr,
size_t  count 
)

Disposes a Rpc Answer array.

Parameters
arrpointer to the array to dispose
countnumber of elements in the array
void NT_DisposeRpcDefinition ( struct NT_RpcDefinition def)

Disposes a Rpc Definition structure.

Parameters
defpointer to the struct to dispose
void NT_DisposeString ( struct NT_String str)

Frees string memory.

Parameters
strstring to free
void NT_DisposeValue ( struct NT_Value value)

Frees value memory.

Parameters
valuevalue to free
void NT_InitString ( struct NT_String str)

Initializes a NT_String.

Sets length to zero and pointer to null.

Parameters
strstring to initialize
void NT_InitValue ( struct NT_Value value)

Initializes a NT_Value.

Sets type to NT_UNASSIGNED and clears rest of struct.

Parameters
valuevalue to initialize
uint64_t NT_Now ( void  )

Returns monotonic current time in 1 us increments.

This is the same time base used for entry and connection timestamps. This function is a compatibility wrapper around WPI_Now().

Returns
Timestamp