Common functions and helpers that all implementations can use.
More...
Common functions and helpers that all implementations can use.
|
void | turo_array_u8 (turo_t *ctx, uint8_t *vals, size_t size) |
| Outputs a formatted uint8 array result.
|
|
void | turo_array_s32 (turo_t *ctx, int32_t *vals, size_t size) |
| Outputs a int32 array result.
|
|
void | turo_dict_string (turo_t *ctx, const char *key, const char *val) |
| Outputs a dict with string data.
|
|
void | turo_dict_s32 (turo_t *ctx, const char *key, int32_t val) |
| Outputs a dict with integer data.
|
|
void | turo_simple_s32 (turo_t *ctx, int32_t val) |
| Outputs a full successful int32 turo result.
|
|
void | turo_simple_array_u8 (turo_t *ctx, uint8_t *vals, size_t size) |
| Outputs a full successful uint8 array turo result.
|
|
void | turo_simple_array_s32 (turo_t *ctx, int32_t *vals, size_t size) |
| Outputs a full successful int32 array turo result.
|
|
void | turo_simple_dict_string (turo_t *ctx, const char *key, const char *val) |
| Outputs a full successful dict with string turo result.
|
|
void | turo_simple_dict_s32 (turo_t *ctx, const char *key, int32_t val) |
| Outputs a full successful dict with an integer turo result.
|
|
void | turo_simple_exit_status (turo_t *ctx, int exit_status) |
| Outputs a full turo result with exit code.
|
|
◆ turo_array_s32()
void turo_array_s32 |
( |
turo_t * |
ctx, |
|
|
int32_t * |
vals, |
|
|
size_t |
size |
|
) |
| |
Outputs a int32 array result.
- Precondition
turo_container_open
called
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | vals | A buffer of data to output. |
[in] | size | The amount of elements to output. |
◆ turo_array_u8()
void turo_array_u8 |
( |
turo_t * |
ctx, |
|
|
uint8_t * |
vals, |
|
|
size_t |
size |
|
) |
| |
Outputs a formatted uint8 array result.
- Precondition
turo_container_open
called
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | vals | A buffer of data to output. |
[in] | size | The amount of elements to output. |
◆ turo_dict_s32()
void turo_dict_s32 |
( |
turo_t * |
ctx, |
|
|
const char * |
key, |
|
|
int32_t |
val |
|
) |
| |
Outputs a dict with integer data.
- Precondition
turo_container_open
called
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | key | A dictionary key. |
[in] | val | The integer value of the dictionary. |
◆ turo_dict_string()
void turo_dict_string |
( |
turo_t * |
ctx, |
|
|
const char * |
key, |
|
|
const char * |
val |
|
) |
| |
Outputs a dict with string data.
- Precondition
turo_container_open
called
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | key | A dictionary key. |
[in] | val | A string value of the dictionary |
◆ turo_simple_array_s32()
void turo_simple_array_s32 |
( |
turo_t * |
ctx, |
|
|
int32_t * |
vals, |
|
|
size_t |
size |
|
) |
| |
Outputs a full successful int32 array turo result.
This includes all opening and closing of turo elements.
- Precondition
- turo ctx initialized
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | vals | The buffer of the integers. |
[in] | size | Number of elements in the array. |
◆ turo_simple_array_u8()
void turo_simple_array_u8 |
( |
turo_t * |
ctx, |
|
|
uint8_t * |
vals, |
|
|
size_t |
size |
|
) |
| |
Outputs a full successful uint8 array turo result.
This includes all opening and closing of turo elements.
- Precondition
- turo ctx initialized
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | vals | The buffer of the integers. |
[in] | size | Number of elements in the array. |
◆ turo_simple_dict_s32()
void turo_simple_dict_s32 |
( |
turo_t * |
ctx, |
|
|
const char * |
key, |
|
|
int32_t |
val |
|
) |
| |
Outputs a full successful dict with an integer turo result.
This includes all opening and closing of turo elements.
- Precondition
- turo ctx initialized
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | key | The dictionary key. |
[in] | val | The integer value. |
◆ turo_simple_dict_string()
void turo_simple_dict_string |
( |
turo_t * |
ctx, |
|
|
const char * |
key, |
|
|
const char * |
val |
|
) |
| |
Outputs a full successful dict with string turo result.
This includes all opening and closing of turo elements.
- Precondition
- turo ctx initialized
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | key | The dictionary key. |
[in] | val | The string value. |
◆ turo_simple_exit_status()
void turo_simple_exit_status |
( |
turo_t * |
ctx, |
|
|
int |
exit_status |
|
) |
| |
Outputs a full turo result with exit code.
This includes all opening and closing of turo elements.
- Precondition
- turo ctx initialized
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | exit_status | The exit status to output. |
◆ turo_simple_s32()
void turo_simple_s32 |
( |
turo_t * |
ctx, |
|
|
int32_t |
val |
|
) |
| |
Outputs a full successful int32 turo result.
This includes all opening and closing of turo elements.
- Precondition
- turo ctx initialized
- Parameters
-
[in] | ctx | The implementation specific turo context. |
[in] | val | The value to output. |