ECP-VELOC Components
User documentation for all components
|
Helper functions to pack/unpack kvtree contents. More...
Go to the source code of this file.
Functions | |
int | kvtree_atod (char *str, double *val) |
void * | kvtree_malloc (size_t size, const char *file, int line) |
void | kvtree_free (void *ptr) |
int | kvtree_pack_uint16_t (void *buf, size_t buf_size, size_t *buf_pos, uint16_t val) |
int | kvtree_pack_uint32_t (void *buf, size_t buf_size, size_t *buf_pos, uint32_t val) |
int | kvtree_pack_uint64_t (void *buf, size_t buf_size, size_t *buf_pos, uint64_t val) |
int | kvtree_unpack_uint16_t (const void *buf, size_t buf_size, size_t *buf_pos, uint16_t *val) |
int | kvtree_unpack_uint32_t (const void *buf, size_t buf_size, size_t *buf_pos, uint32_t *val) |
int | kvtree_unpack_uint64_t (const void *buf, size_t buf_size, size_t *buf_pos, uint64_t *val) |
int kvtree_atod | ( | char * | str, |
double * | val | ||
) |
given a string, convert it to a double and write that value to val
void kvtree_free | ( | void * | ptr | ) |
pass address of pointer to be freed, frees memory if not NULL and sets pointer to NULL
void* kvtree_malloc | ( | size_t | size, |
const char * | file, | ||
int | line | ||
) |
int kvtree_pack_uint16_t | ( | void * | buf, |
size_t | buf_size, | ||
size_t * | buf_pos, | ||
uint16_t | val | ||
) |
pack an unsigned 16 bit value to specified buffer in network order
int kvtree_pack_uint32_t | ( | void * | buf, |
size_t | buf_size, | ||
size_t * | buf_pos, | ||
uint32_t | val | ||
) |
pack an unsigned 32 bit value to specified buffer in network order
int kvtree_pack_uint64_t | ( | void * | buf, |
size_t | buf_size, | ||
size_t * | buf_pos, | ||
uint64_t | val | ||
) |
pack an unsigned 64 bit value to specified buffer in network order
int kvtree_unpack_uint16_t | ( | const void * | buf, |
size_t | buf_size, | ||
size_t * | buf_pos, | ||
uint16_t * | val | ||
) |
unpack an unsigned 16 bit value to specified buffer in network order
int kvtree_unpack_uint32_t | ( | const void * | buf, |
size_t | buf_size, | ||
size_t * | buf_pos, | ||
uint32_t * | val | ||
) |
unpack an unsigned 32 bit value to specified buffer in network order
int kvtree_unpack_uint64_t | ( | const void * | buf, |
size_t | buf_size, | ||
size_t * | buf_pos, | ||
uint64_t * | val | ||
) |
unpack an unsigned 64 bit value to specified buffer in network order