Go to the source code of this file.
|
#define | BLOCKSIZE 1024 |
|
#define | SER_SAFE(blocks, size, len) if((size) > len) len = _ser_realloc((void**)&(blocks),(size)); |
| this is the safety check used to make sure there's always enough mem More...
|
|
|
int | ser_string_get (char **dest, int *source, const char *buf, int len) |
|
int | ser_int_get (int *dest, int *source, const char *buf, int len) |
|
static int | _ser_realloc (void **oblocks, int len) |
| internal: do and return the math and ensure it gets realloc'd More...
|
|
void | ser_string_set (const char *source, int *dest, char **buf, int *len) |
|
void | ser_int_set (int source, int *dest, char **buf, int *len) |
|
#define SER_SAFE |
( |
|
blocks, |
|
|
|
size, |
|
|
|
len |
|
) |
| if((size) > len) len = _ser_realloc((void**)&(blocks),(size)); |
int ser_string_get |
( |
char ** |
dest, |
|
|
int * |
source, |
|
|
const char * |
buf, |
|
|
int |
len |
|
) |
| |
int ser_int_get |
( |
int * |
dest, |
|
|
int * |
source, |
|
|
const char * |
buf, |
|
|
int |
len |
|
) |
| |
static int _ser_realloc |
( |
void ** |
oblocks, |
|
|
int |
len |
|
) |
| |
|
static |
internal: do and return the math and ensure it gets realloc'd
Definition at line 94 of file serial.c.
References BLOCKSIZE.
void ser_string_set |
( |
const char * |
source, |
|
|
int * |
dest, |
|
|
char ** |
buf, |
|
|
int * |
len |
|
) |
| |
void ser_int_set |
( |
int |
source, |
|
|
int * |
dest, |
|
|
char ** |
buf, |
|
|
int * |
len |
|
) |
| |