WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
ntcore_test.h File Reference
#include <stdint.h>
#include "ntcore.h"

Go to the source code of this file.

Functions

struct WPI_StringNT_GetStringForTesting (const char *str, int *struct_size)
 
struct NT_EntryInfo * NT_GetEntryInfoForTesting (const char *name, enum NT_Type type, unsigned int flags, uint64_t last_change, int *struct_size)
 
void NT_FreeEntryInfoForTesting (struct NT_EntryInfo *info)
 
struct NT_ConnectionInfoNT_GetConnectionInfoForTesting (const char *remote_id, const char *remote_ip, unsigned int remote_port, uint64_t last_update, unsigned int protocol_version, int *struct_size)
 
void NT_FreeConnectionInfoForTesting (struct NT_ConnectionInfo *info)
 
struct NT_ValueNT_GetValueBooleanForTesting (uint64_t last_change, int val, int *struct_size)
 
struct NT_ValueNT_GetValueDoubleForTesting (uint64_t last_change, double val, int *struct_size)
 
struct NT_ValueNT_GetValueStringForTesting (uint64_t last_change, const char *str, int *struct_size)
 
struct NT_ValueNT_GetValueRawForTesting (uint64_t last_change, const char *raw, int raw_len, int *struct_size)
 
struct NT_ValueNT_GetValueBooleanArrayForTesting (uint64_t last_change, const int *arr, size_t array_len, int *struct_size)
 
struct NT_ValueNT_GetValueDoubleArrayForTesting (uint64_t last_change, const double *arr, size_t array_len, int *struct_size)
 
struct NT_ValueNT_GetValueStringArrayForTesting (uint64_t last_change, const struct WPI_String *arr, size_t array_len, int *struct_size)
 

Function Documentation

◆ NT_FreeConnectionInfoForTesting()

void NT_FreeConnectionInfoForTesting ( struct NT_ConnectionInfo * info)

◆ NT_FreeEntryInfoForTesting()

void NT_FreeEntryInfoForTesting ( struct NT_EntryInfo * info)

◆ NT_GetConnectionInfoForTesting()

struct NT_ConnectionInfo * NT_GetConnectionInfoForTesting ( const char * remote_id,
const char * remote_ip,
unsigned int remote_port,
uint64_t last_update,
unsigned int protocol_version,
int * struct_size )

◆ NT_GetEntryInfoForTesting()

struct NT_EntryInfo * NT_GetEntryInfoForTesting ( const char * name,
enum NT_Type type,
unsigned int flags,
uint64_t last_change,
int * struct_size )

◆ NT_GetStringForTesting()

struct WPI_String * NT_GetStringForTesting ( const char * str,
int * struct_size )

◆ NT_GetValueBooleanArrayForTesting()

struct NT_Value * NT_GetValueBooleanArrayForTesting ( uint64_t last_change,
const int * arr,
size_t array_len,
int * struct_size )

◆ NT_GetValueBooleanForTesting()

struct NT_Value * NT_GetValueBooleanForTesting ( uint64_t last_change,
int val,
int * struct_size )

◆ NT_GetValueDoubleArrayForTesting()

struct NT_Value * NT_GetValueDoubleArrayForTesting ( uint64_t last_change,
const double * arr,
size_t array_len,
int * struct_size )

◆ NT_GetValueDoubleForTesting()

struct NT_Value * NT_GetValueDoubleForTesting ( uint64_t last_change,
double val,
int * struct_size )

◆ NT_GetValueRawForTesting()

struct NT_Value * NT_GetValueRawForTesting ( uint64_t last_change,
const char * raw,
int raw_len,
int * struct_size )

◆ NT_GetValueStringArrayForTesting()

struct NT_Value * NT_GetValueStringArrayForTesting ( uint64_t last_change,
const struct WPI_String * arr,
size_t array_len,
int * struct_size )

◆ NT_GetValueStringForTesting()

struct NT_Value * NT_GetValueStringForTesting ( uint64_t last_change,
const char * str,
int * struct_size )