mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[hal] Add high level way of getting systemserver NT instance (#7683)
This commit is contained in:
@@ -134,6 +134,16 @@ public final class NetworkTableInstance implements AutoCloseable {
|
||||
return inst;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance from a native handle. This instance is not owned, closing will do nothing.
|
||||
*
|
||||
* @param handle Native instance handle
|
||||
* @return Instance
|
||||
*/
|
||||
public static NetworkTableInstance fromNativeHandle(int handle) {
|
||||
return new NetworkTableInstance(handle);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the native handle for the instance.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user