Nyx Node
|
Struct describing a JSON string. More...
#include <nyx_node.h>
Public Member Functions | |
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. | |
STR_t | nyx_string_get (const nyx_string_t *object) |
Get the value of 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). | |
__INLINE__ bool | 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_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_length (const nyx_string_t *object) |
Returns the length of the string representing 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. | |
str_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_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_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_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). | |
Public Attributes | |
nyx_object_t | base |
??? | |
size_t | length |
??? | |
str_t | value |
??? | |
bool | dyn |
??? | |
Struct describing a JSON string.