|
suricata
|


Go to the source code of this file.
Data Structures | |
| struct | StringType |
Typedefs | |
| typedef struct StringType | StringType |
Functions | |
| int | StringSet (void *dst, void *src) |
| int | StringJsonSet (void *dst, void *src) |
| bool | StringCompare (void *a, void *b) |
| uint32_t | StringHash (uint32_t hash_seed, void *s) |
| uint32_t | StringGetLength (void *s) |
| void | StringFree (void *s) |
| void | StringJsonFree (void *s) |
| int | StringAsBase64 (const void *s, char *out, size_t out_size) |
| uint32_t | StringJsonGetLength (void *s) |
Definition in file datasets-string.h.
| typedef struct StringType StringType |
| int StringAsBase64 | ( | const void * | s, |
| char * | out, | ||
| size_t | out_size | ||
| ) |
Definition at line 46 of file datasets-string.c.
References len, str, strlcat(), and strlcpy().
Referenced by DatasetsSave().


| bool StringCompare | ( | void * | a, |
| void * | b | ||
| ) |
Definition at line 95 of file datasets-string.c.
References StringType::len, and StringType::ptr.
Referenced by DatajsonGet(), and DatasetGet().

| void StringFree | ( | void * | s | ) |
Definition at line 119 of file datasets-string.c.
Referenced by DatasetGet().

| uint32_t StringGetLength | ( | void * | s | ) |
Definition at line 112 of file datasets-string.c.
References StringType::len, and str.
Referenced by DatasetGet().

| uint32_t StringHash | ( | uint32_t | hash_seed, |
| void * | s | ||
| ) |
Definition at line 106 of file datasets-string.c.
References hashlittle_safe(), and str.
Referenced by DatajsonGet(), and DatasetGet().


| void StringJsonFree | ( | void * | s | ) |
Definition at line 125 of file datasets-string.c.
Referenced by DatajsonGet().

| uint32_t StringJsonGetLength | ( | void * | s | ) |
Definition at line 134 of file datasets-string.c.
References StringType::json, DataJsonType::len, and str.
Referenced by DatajsonGet().

| int StringJsonSet | ( | void * | dst, |
| void * | src | ||
| ) |
Definition at line 79 of file datasets-string.c.
References DatajsonCopyJson(), dst, StringType::json, StringType::ptr, SCFree, src, and StringSet().
Referenced by DatajsonGet().


| int StringSet | ( | void * | dst, |
| void * | src | ||
| ) |
Definition at line 60 of file datasets-string.c.
References dst, StringType::len, StringType::ptr, StringType::rep, SCLogDebug, SCLogError, SCMalloc, and src.
Referenced by DatasetGet(), and StringJsonSet().
