Go to the source code of this file.
Macros |
| #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
|
Functions |
| 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
|
| void | ser_string_set (char *source, int *dest, char **buf, int *len) |
| void | ser_int_set (int source, int *dest, char **buf, int *len) |
Macro Definition Documentation
| #define SER_SAFE |
( |
|
blocks, |
|
|
|
size, |
|
|
|
len |
|
) |
| if((size) > len) len = _ser_realloc((void**)&(blocks),(size)); |
Function Documentation
| 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 |
( |
char * |
source, |
|
|
int * |
dest, |
|
|
char ** |
buf, |
|
|
int * |
len |
|
) |
| |
| void ser_int_set |
( |
int |
source, |
|
|
int * |
dest, |
|
|
char ** |
buf, |
|
|
int * |
len |
|
) |
| |