17#ifndef ZITI_SDK_ZITI_BUFFER_H
18#define ZITI_SDK_ZITI_BUFFER_H
24#if !defined(__DEFINED_ssize_t) && !defined(__ssize_t_defined)
26typedef intptr_t ssize_t;
27#define __DEFINED_ssize_t
28#define __ssize_t_defined
#define ZITI_FUNC
Definition externs.h:38
int string_buf_fmt(string_buf_t *wb, const char *fmt,...)
printf style append operation.
int string_buf_appendn(string_buf_t *wb, const char *str, size_t len)
Append len bytes from str to the string buffer.
string_buf_t * new_fixed_string_buf(char *outbuf, size_t max)
Create buffer using passed in memory for output.
string_buf_t * new_string_buf()
Create new string buffer.
int string_buf_append_byte(string_buf_t *wb, char c)
Append one byte to the string buffer.
int string_buf_append_urlsafe(string_buf_t *wb, const char *str)
Appends [str] to [wb] converting to urlsafe encoding.
void delete_string_buf(string_buf_t *wb)
Deallocate all memory associated with the given string buffer.
char * string_buf_to_string(string_buf_t *wb, size_t *outlen)
Allocate string big enough to hold the contents of the buffer with '\0at the end and copy contents in...
size_t string_buf_size(string_buf_t *wb)
number of bytes written to the string buffer so far
struct string_buf_s string_buf_t
Growing string buffer.
Definition ziti_buffer.h:43
int string_buf_append(string_buf_t *wb, const char *str)
Append \0 terminated string to the buffer.
#define FORMAT_STRING(p)
Definition ziti_log.h:76
#define ziti_printf_args(a, b)
Definition ziti_log.h:82