WPILibC++ 2025.0.0-alpha-1-24-g6478ba6

Functions

char * NT_AllocateCharArray (size_t size)
 Allocates an array of chars. More...
 
NT_BoolNT_AllocateBooleanArray (size_t size)
 Allocates an array of booleans. More...
 
int64_t * NT_AllocateIntegerArray (size_t size)
 Allocates an array of ints. More...
 
float * NT_AllocateFloatArray (size_t size)
 Allocates an array of floats. More...
 
double * NT_AllocateDoubleArray (size_t size)
 Allocates an array of doubles. More...
 
void NT_FreeCharArray (char *v_char)
 Frees an array of chars. More...
 
void NT_FreeBooleanArray (NT_Bool *v_boolean)
 Frees an array of booleans. More...
 
void NT_FreeIntegerArray (int64_t *v_int)
 Frees an array of ints. More...
 
void NT_FreeFloatArray (float *v_float)
 Frees an array of floats. More...
 
void NT_FreeDoubleArray (double *v_double)
 Frees an array of doubles. More...
 

Detailed Description

Function Documentation

◆ NT_AllocateBooleanArray()

NT_Bool * NT_AllocateBooleanArray ( size_t  size)

Allocates an array of booleans.

Note that the size is the number of elements, and not the specific number of bytes to allocate. That is calculated internally.

Parameters
sizethe number of elements the array will contain
Returns
the allocated boolean array

After use, the array should be freed using the NT_FreeBooleanArray() function.

◆ NT_AllocateCharArray()

char * NT_AllocateCharArray ( size_t  size)

Allocates an array of chars.

Note that the size is the number of elements, and not the specific number of bytes to allocate. That is calculated internally.

Parameters
sizethe number of elements the array will contain
Returns
the allocated char array

After use, the array should be freed using the NT_FreeCharArray() function.

◆ NT_AllocateDoubleArray()

double * NT_AllocateDoubleArray ( size_t  size)

Allocates an array of doubles.

Note that the size is the number of elements, and not the specific number of bytes to allocate. That is calculated internally.

Parameters
sizethe number of elements the array will contain
Returns
the allocated double array

After use, the array should be freed using the NT_FreeDoubleArray() function.

◆ NT_AllocateFloatArray()

float * NT_AllocateFloatArray ( size_t  size)

Allocates an array of floats.

Note that the size is the number of elements, and not the specific number of bytes to allocate. That is calculated internally.

Parameters
sizethe number of elements the array will contain
Returns
the allocated double array

After use, the array should be freed using the NT_FreeFloatArray() function.

◆ NT_AllocateIntegerArray()

int64_t * NT_AllocateIntegerArray ( size_t  size)

Allocates an array of ints.

Note that the size is the number of elements, and not the specific number of bytes to allocate. That is calculated internally.

Parameters
sizethe number of elements the array will contain
Returns
the allocated double array

After use, the array should be freed using the NT_FreeIntArray() function.

◆ NT_FreeBooleanArray()

void NT_FreeBooleanArray ( NT_Bool v_boolean)

Frees an array of booleans.

Parameters
v_booleanpointer to the boolean array to free

◆ NT_FreeCharArray()

void NT_FreeCharArray ( char *  v_char)

Frees an array of chars.

Parameters
v_charpointer to the char array to free

◆ NT_FreeDoubleArray()

void NT_FreeDoubleArray ( double *  v_double)

Frees an array of doubles.

Parameters
v_doublepointer to the double array to free

◆ NT_FreeFloatArray()

void NT_FreeFloatArray ( float *  v_float)

Frees an array of floats.

Parameters
v_floatpointer to the float array to free

◆ NT_FreeIntegerArray()

void NT_FreeIntegerArray ( int64_t *  v_int)

Frees an array of ints.

Parameters
v_intpointer to the int array to free