suricata
datasets-string.h File Reference
Include dependency graph for datasets-string.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  StringType
 

Typedefs

typedef struct StringType StringType
 

Functions

int StringSet (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)
 
int StringAsBase64 (const void *s, char *out, size_t out_size)
 

Detailed Description

Typedef Documentation

◆ StringType

typedef struct StringType StringType

Function Documentation

◆ StringAsBase64()

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().

Here is the call graph for this function:

◆ StringCompare()

bool StringCompare ( void *  a,
void *  b 
)

Definition at line 77 of file datasets-string.c.

References StringType::len, and StringType::ptr.

◆ StringFree()

void StringFree ( void *  s)

Definition at line 101 of file datasets-string.c.

References SCFree, and str.

◆ StringGetLength()

uint32_t StringGetLength ( void *  s)

Definition at line 94 of file datasets-string.c.

References str.

◆ StringHash()

uint32_t StringHash ( uint32_t  hash_seed,
void *  s 
)

Definition at line 88 of file datasets-string.c.

References hashlittle_safe(), and str.

Here is the call graph for this function:

◆ StringSet()

int StringSet ( void *  dst,
void *  src 
)