Go to the documentation of this file.
34 static int StringAsAscii(
const void *s,
char *out,
size_t out_size)
50 unsigned long len = Base64EncodeBufferSize(
str->len);
51 uint8_t encoded_data[
len];
52 if (Base64Encode((
unsigned char *)
str->ptr,
str->len,
53 encoded_data, &
len) != SC_BASE64_OK)
56 strlcpy(out, (
const char *)encoded_data, out_size);
58 return (
int)strlen(out);
70 memcpy(dst_s->
ptr, src_s->
ptr, dst_s->
len);
85 return (memcmp(as->
ptr, bs->
ptr, as->
len) == 0);
size_t strlcpy(char *dst, const char *src, size_t siz)
int StringSet(void *dst, void *src)
size_t strlcat(char *, const char *src, size_t siz)
int StringAsBase64(const void *s, char *out, size_t out_size)
uint32_t StringGetLength(void *s)
uint32_t hashlittle_safe(const void *key, size_t length, uint32_t initval)
void PrintRawUriBuf(char *retbuf, uint32_t *offset, uint32_t retbuflen, uint8_t *buf, size_t buflen)
bool StringCompare(void *a, void *b)
uint32_t StringHash(uint32_t hash_seed, void *s)