Nyx Node
|
Classes | |
struct | nyx_string_t |
Struct describing a JSON string. More... | |
Macros | |
#define | nyx_string_set nyx_string_set_dup |
Alias to nyx_string_set_dup. | |
#define | nyx_string_from nyx_string_from_dup |
Alias to nyx_string_from_dup. | |
Functions | |
nyx_string_t * | nyx_string_t::nyx_string_new () |
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. | |
__INLINE__ bool | nyx_string_t::nyx_string_set_dup (nyx_string_t *object, STR_t value) |
Set the value of the provided JSON string object (string duplication). | |
__INLINE__ bool | nyx_string_t::nyx_string_set_ref (nyx_string_t *object, STR_t value) |
Set the value of the provided JSON string object (string reference). | |
__INLINE__ bool | nyx_string_t::nyx_string_set_buff (nyx_string_t *object, size_t size, BUFF_t buff, bool base64_encode) |
Set the value of the provided JSON string object (buffer reference or base64 encoding). | |
size_t | nyx_string_t::nyx_string_length (const nyx_string_t *object) |
Returns the length of the string representing the provided JSON string object. | |
str_t | nyx_string_t::nyx_string_to_string (const nyx_string_t *object) |
Returns a string representing the provided JSON string object. | |
str_t | nyx_string_t::nyx_string_to_cstring (const nyx_string_t *object) |
Returns a C/C++ string representing the provided JSON string object. | |
__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 argument (string duplication). | |
__INLINE__ nyx_string_t * | nyx_string_t::nyx_string_from_ref (STR_t value) |
Returns a JSON string object holding the value of the provided argument (string reference). | |
__INLINE__ nyx_string_t * | nyx_string_t::nyx_string_from_buff (size_t size, BUFF_t buff, bool base64_encode) |
Returns a JSON string object holding the value of the provided argument (buffer reference or base64 encoding). | |
nyx_string_t * nyx_string_new | ( | ) |
Allocates a new JSON string object.
void nyx_string_free | ( | nyx_string_t * | object | ) |
Frees memory of the provided JSON string object.
object | The provided JSON string object. |
STR_t nyx_string_get | ( | const nyx_string_t * | object | ) |
Get the value of the provided JSON string object.
object | The provided JSON string object. |
__INLINE__ bool nyx_string_set_dup | ( | nyx_string_t * | object, |
STR_t | value ) |
Set the value of the provided JSON string object (string duplication).
object | The provided JSON string object. |
value | The value for the provided JSON string object. |
true
if the value was modified, false
otherwise. __INLINE__ bool nyx_string_set_ref | ( | nyx_string_t * | object, |
STR_t | value ) |
Set the value of the provided JSON string object (string reference).
object | The provided JSON string object. |
value | The value for the provided JSON string object. |
true
if the value was modified, false
otherwise. __INLINE__ bool nyx_string_set_buff | ( | nyx_string_t * | object, |
size_t | size, | ||
BUFF_t | buff, | ||
bool | base64_encode ) |
Set the value of the provided JSON string object (buffer reference or base64 encoding).
object | The provided JSON string object. |
size | The value size for the provided JSON string object. |
buff | The value buffer for the provided JSON string object. |
base64_encode | Indicates whether the buffer must be base64-encoded. |
true
if the value was modified, false
otherwise. size_t nyx_string_length | ( | const nyx_string_t * | object | ) |
Returns the length of the string representing the provided JSON string object.
object | The provided JSON string object. |
str_t nyx_string_to_string | ( | const nyx_string_t * | object | ) |
Returns a string representing the provided JSON string object.
object | The provided object. |
str_t nyx_string_to_cstring | ( | const nyx_string_t * | object | ) |
Returns a C/C++ string representing the provided JSON string object.
object | The provided object. |
__INLINE__ nyx_string_t * nyx_string_from_dup | ( | STR_t | value | ) |
Returns a JSON string object holding the value of the provided argument (string duplication).
value | The value for the new JSON string object. |
__INLINE__ nyx_string_t * nyx_string_from_ref | ( | STR_t | value | ) |
Returns a JSON string object holding the value of the provided argument (string reference).
value | The value for the new JSON string object. |
__INLINE__ nyx_string_t * nyx_string_from_buff | ( | size_t | size, |
BUFF_t | buff, | ||
bool | base64_encode ) |
Returns a JSON string object holding the value of the provided argument (buffer reference or base64 encoding).
size | The buffer size for the new JSON string object. |
buff | The buffer pointer for the new JSON string object. |
base64_encode | Indicates whether the buffer must be base64-encoded. |