NVAT String#

Utilities for working with strings produced by the SDK.

Functions#

void nvat_str_free(nvat_str_t *str)

Free the given string.

nvat_rc_t nvat_str_get_data(const nvat_str_t str, char **out_data)

Get the data of the given string.

nvat_rc_t nvat_str_length(const nvat_str_t str, size_t *out_length)

Get the length of the given string.

Typedefs#

Functions#

void nvat_str_free(nvat_str_t *str)#

Free the given string.

nvat_rc_t nvat_str_get_data(const nvat_str_t str, char **out_data)#

Get the data of the given string.

The returned pointer refers to a buffer that may contain binary data and NUL (\0) bytes. Do not assume it is a null-terminated C-string. Use nvat_str_length for the size.

Ownership: The ownership of the data is not transferred to the caller. The caller should not free the data.

nvat_rc_t nvat_str_length(const nvat_str_t str, size_t *out_length)#

Get the length of the given string.

Typedefs#

typedef struct nvat_str_st *nvat_str_t#