![]() |
WPILibC++ 2025.3.2
|
Functions | |
| char * | NT_AllocateCharArray (size_t size) |
| Allocates an array of chars. | |
| NT_Bool * | NT_AllocateBooleanArray (size_t size) |
| Allocates an array of booleans. | |
| int64_t * | NT_AllocateIntegerArray (size_t size) |
| Allocates an array of ints. | |
| float * | NT_AllocateFloatArray (size_t size) |
| Allocates an array of floats. | |
| double * | NT_AllocateDoubleArray (size_t size) |
| Allocates an array of doubles. | |
| void | NT_FreeCharArray (char *v_char) |
| Frees an array of chars. | |
| void | NT_FreeBooleanArray (NT_Bool *v_boolean) |
| Frees an array of booleans. | |
| void | NT_FreeIntegerArray (int64_t *v_int) |
| Frees an array of ints. | |
| void | NT_FreeFloatArray (float *v_float) |
| Frees an array of floats. | |
| void | NT_FreeDoubleArray (double *v_double) |
| Frees an array of doubles. | |
| 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.
| size | the number of elements the array will contain |
After use, the array should be freed using the NT_FreeBooleanArray() function.
| 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.
| size | the number of elements the array will contain |
After use, the array should be freed using the NT_FreeCharArray() function.
| 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.
| size | the number of elements the array will contain |
After use, the array should be freed using the NT_FreeDoubleArray() function.
| 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.
| size | the number of elements the array will contain |
After use, the array should be freed using the NT_FreeFloatArray() function.
| 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.
| size | the number of elements the array will contain |
After use, the array should be freed using the NT_FreeIntArray() function.
| void NT_FreeBooleanArray | ( | NT_Bool * | v_boolean | ) |
Frees an array of booleans.
| v_boolean | pointer to the boolean array to free |
| void NT_FreeCharArray | ( | char * | v_char | ) |
Frees an array of chars.
| v_char | pointer to the char array to free |
| void NT_FreeDoubleArray | ( | double * | v_double | ) |
Frees an array of doubles.
| v_double | pointer to the double array to free |
| void NT_FreeFloatArray | ( | float * | v_float | ) |
Frees an array of floats.
| v_float | pointer to the float array to free |
| void NT_FreeIntegerArray | ( | int64_t * | v_int | ) |
Frees an array of ints.
| v_int | pointer to the int array to free |