WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
Instance Functions

Functions

NT_Inst nt::GetDefaultInstance ()
 Get default instance.
 
NT_Inst nt::CreateInstance ()
 Create an instance.
 
void nt::ResetInstance (NT_Inst inst)
 Reset the internals of an instance.
 
void nt::DestroyInstance (NT_Inst inst)
 Destroy an instance.
 
NT_Inst nt::GetInstanceFromHandle (NT_Handle handle)
 Get instance handle from another handle.
 

Detailed Description

Function Documentation

◆ CreateInstance()

NT_Inst nt::CreateInstance ( )

Create an instance.

Returns
Instance handle

◆ DestroyInstance()

void nt::DestroyInstance ( NT_Inst inst)

Destroy an instance.

The default instance cannot be destroyed.

Parameters
instInstance handle

◆ GetDefaultInstance()

NT_Inst nt::GetDefaultInstance ( )

Get default instance.

This is the instance used by non-handle-taking functions.

Returns
Instance handle

◆ GetInstanceFromHandle()

NT_Inst nt::GetInstanceFromHandle ( NT_Handle handle)

Get instance handle from another handle.

Parameters
handleentry/instance/etc. handle
Returns
Instance handle

◆ ResetInstance()

void nt::ResetInstance ( NT_Inst inst)

Reset the internals of an instance.

Every handle previously associated with this instance will no longer be valid, except for the instance handle.