46 #include "libical_ical_export.h" void icalmemory_free_ring(void)
Free all memory used in the ring.
Definition: icalmemory.c:233
char * icalmemory_strdup(const char *s)
Create a duplicate of a string.
Definition: icalmemory.c:257
void icalmemory_free_buffer(void *buf)
Releases a buffer.
Definition: icalmemory.c:293
void * icalmemory_tmp_buffer(size_t size)
Creates a new temporary buffer on the ring and returns it.
Definition: icalmemory.c:211
void icalmemory_append_char(char **buf, char **pos, size_t *buf_size, char ch)
Append a character to a buffer.
Definition: icalmemory.c:336
void * icalmemory_resize_buffer(void *buf, size_t size)
Resizes a buffer created with icalmemory_new_buffer().
Definition: icalmemory.c:281
char * icalmemory_tmp_copy(const char *str)
Creates a copy of the given string, stored on the ring buffer, and returns it.
Definition: icalmemory.c:248
void * icalmemory_new_buffer(size_t size)
Creates new buffer with the specified size.
Definition: icalmemory.c:267
void icalmemory_append_string(char **buf, char **pos, size_t *buf_size, const char *string)
Append a string to a buffer.
Definition: icalmemory.c:298
void icalmemory_add_tmp_buffer(void *buf)
Add an externally allocated buffer to the ring.
Definition: icalmemory.c:187