Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions
sol-arena.h File Reference

These are routines that Soletta provides for its arena implementation. More...

#include <sol-str-slice.h>
#include <sol-vector.h>
#include <sol-macros.h>

Go to the source code of this file.

Typedefs

typedef struct sol_arena sol_arena
 Sol Arena type. More...
 

Functions

void sol_arena_del (struct sol_arena *arena)
 Delete the Arena. More...
 
struct sol_arenasol_arena_new (void)
 Creates an Arena. More...
 
int sol_arena_slice_dup (struct sol_arena *arena, struct sol_str_slice *dst, struct sol_str_slice src)
 Store a copy of a given string slice in the arena. More...
 
int sol_arena_slice_dup_str (struct sol_arena *arena, struct sol_str_slice *dst, const char *src)
 Store a copy of a given string in the arena. More...
 
int sol_arena_slice_dup_str_n (struct sol_arena *arena, struct sol_str_slice *dst, const char *src, size_t n)
 Store a copy of at most n characters of a given string in the arena. More...
 
int sol_arena_slice_sprintf (struct sol_arena *arena, struct sol_str_slice *dst, const char *fmt,...) SOL_ATTR_PRINTF(3
 Store the output of 'sprintf()' in the arena. More...
 
char * sol_arena_str_dup_n (struct sol_arena *arena, const char *str, size_t n)
 Store a copy of at most n characters of a given string in the arena. More...
 
int char * sol_arena_strdup (struct sol_arena *arena, const char *str)
 Store a copy of a given string in the arena. More...
 
char * sol_arena_strdup_slice (struct sol_arena *arena, const struct sol_str_slice slice)
 Store a copy of a given string slice in the arena. More...
 

Detailed Description

These are routines that Soletta provides for its arena implementation.