|
Nyx Node
|

Data Structures | |
| struct | nyx_string_t |
| Struct describing a JSON string object. More... | |
Functions | |
| nyx_string_t * | nyx_string_t::nyx_string_new (void) |
| Allocates a new JSON string object. | |
| void | nyx_string_t::nyx_string_free (nyx_string_t *object) |
| Frees memory of the provided JSON string object. | |
| STR_t | nyx_string_t::nyx_string_get (const nyx_string_t *object) |
| Get the value of the provided JSON string object. | |
| bool | nyx_string_t::nyx_string_set (nyx_string_t *object, STR_t value, bool managed) |
| Set the value of the provided JSON string object. | |
| bool | nyx_string_t::nyx_string_set_buff (nyx_string_t *object, size_t size, BUFF_t buff, bool managed) |
| Set the value of the provided JSON string object. | |
| size_t | nyx_string_t::nyx_string_length (const nyx_string_t *object) |
| Returns the length of the provided JSON string object. | |
| str_t | nyx_string_t::nyx_string_to_string (const nyx_string_t *object) |
| Returns a C string, with special character escaping, representing the provided JSON string object. | |
| str_t | nyx_string_t::nyx_string_to_cstring (const nyx_string_t *object) |
| Returns a C string, without special character escaping, representing the provided JSON string object. | |
| __NYX_INLINE__ nyx_string_t * | nyx_string_t::nyx_string_from_dup (STR_t value) |
| Returns a JSON string object holding the value of the provided string (managed duplication). | |
| __NYX_INLINE__ nyx_string_t * | nyx_string_t::nyx_string_from_managed (STR_t value) |
| Returns a JSON string object holding the value of the provided string (managed reference). | |
| __NYX_INLINE__ nyx_string_t * | nyx_string_t::nyx_string_from_unmanaged (STR_t value) |
| Returns a JSON string object holding the value of the provided string (unmanaged reference). | |
| __NYX_INLINE__ nyx_string_t * | nyx_string_t::nyx_string_from_buff_managed (size_t size, BUFF_t buff) |
| Returns a JSON string object holding the value of the provided buffer (managed reference). | |
| __NYX_INLINE__ nyx_string_t * | nyx_string_t::nyx_string_from_buff_unmanaged (size_t size, BUFF_t buff) |
| Returns a JSON string object holding the value of the provided buffer (unmanaged reference). | |
JSON String Object.
| nyx_string_t * nyx_string_new | ( | void | ) |
Allocates a new JSON string object.
Definition at line 14 of file json_string.c.
| void nyx_string_free | ( | nyx_string_t * | object | ) |
Frees memory of the provided JSON string object.
| object | JSON string object. |
Definition at line 38 of file json_string.c.
| STR_t nyx_string_get | ( | const nyx_string_t * | object | ) |
Get the value of the provided JSON string object.
| object | JSON string object. |
Definition at line 50 of file json_string.c.
| bool nyx_string_set | ( | nyx_string_t * | object, |
| STR_t | value, | ||
| bool | managed | ||
| ) |
Set the value of the provided JSON string object.
| object | JSON string object. |
| value | Value for the provided JSON string object. |
| managed | If true, the provided buffer is freed with this object. |
true if the value was modified, false otherwise. Definition at line 70 of file json_string.c.
| bool nyx_string_set_buff | ( | nyx_string_t * | object, |
| size_t | size, | ||
| BUFF_t | buff, | ||
| bool | managed | ||
| ) |
Set the value of the provided JSON string object.
| object | JSON string object. |
| size | Value size for the provided JSON string object. |
| buff | Value buffer for the provided JSON string object. |
| managed | If true, the provided buffer is freed with this object. |
true if the value was modified, false otherwise. Definition at line 106 of file json_string.c.
| size_t nyx_string_length | ( | const nyx_string_t * | object | ) |
Returns the length of the provided JSON string object.
| object | JSON string object. |
Definition at line 142 of file json_string.c.
| str_t nyx_string_to_string | ( | const nyx_string_t * | object | ) |
Returns a C string, with special character escaping, representing the provided JSON string object.
| object | JSON string object. |
Definition at line 149 of file json_string.c.
| str_t nyx_string_to_cstring | ( | const nyx_string_t * | object | ) |
Returns a C string, without special character escaping, representing the provided JSON string object.
| object | JSON string object. |
Definition at line 166 of file json_string.c.
| __NYX_INLINE__ nyx_string_t * nyx_string_from_dup | ( | STR_t | value | ) |
Returns a JSON string object holding the value of the provided string (managed duplication).
| value | Value for the new JSON string object. |
Definition at line 1043 of file nyx_node.h.
| __NYX_INLINE__ nyx_string_t * nyx_string_from_managed | ( | STR_t | value | ) |
Returns a JSON string object holding the value of the provided string (managed reference).
| value | Value for the new JSON string object. |
Definition at line 1062 of file nyx_node.h.
| __NYX_INLINE__ nyx_string_t * nyx_string_from_unmanaged | ( | STR_t | value | ) |
Returns a JSON string object holding the value of the provided string (unmanaged reference).
| value | Value for the new JSON string object. |
Definition at line 1081 of file nyx_node.h.
| __NYX_INLINE__ nyx_string_t * nyx_string_from_buff_managed | ( | size_t | size, |
| BUFF_t | buff | ||
| ) |
Returns a JSON string object holding the value of the provided buffer (managed reference).
| size | Buffer size for the new JSON string object. |
| buff | Buffer pointer for the new JSON string object. |
Definition at line 1101 of file nyx_node.h.
| __NYX_INLINE__ nyx_string_t * nyx_string_from_buff_unmanaged | ( | size_t | size, |
| BUFF_t | buff | ||
| ) |
Returns a JSON string object holding the value of the provided buffer (unmanaged reference).
| size | Buffer size for the new JSON string object. |
| buff | Buffer pointer for the new JSON string object. |
Definition at line 1121 of file nyx_node.h.