--- libaitio/inc/aitio.h 2011/08/31 12:46:58 1.11.2.7 +++ libaitio/inc/aitio.h 2011/08/31 13:23:25 1.11.2.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.7 2011/08/31 12:46:58 misho Exp $ +* $Id: aitio.h,v 1.11.2.9 2011/08/31 13:23:25 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -240,7 +240,7 @@ inline const char *io_GetError(); * @vars = Variable array * return: -1 error, 0 nothing done or >0 size of marshaled data */ -int io_vals2buffer(unsigned char **buf, int buflen, array_t *vars); +int io_vals2buffer(unsigned char *buf, int buflen, array_t *vars); /* * io_buffer2vals() De-marshaling data from buffer to array with variables * @buf = Buffer @@ -519,6 +519,14 @@ int io_sarrGrow(sarr_t * __restrict arr, int newNumIte */ inline int io_sarrVacuum(sarr_t * __restrict arr); #define io_sarrSize(_arr) (assert((_arr)), (_arr)->sarr_num) +#define io_sarrSeg(_arr) (assert((_arr)), (_arr)->sarr_seg) +/* + * io_sarrCopy() Copy source split array to destination split array + * @dest = Destination split array, after use free with io_sarrDestroy() + * @src = Source split array + * return: -1 error; >0 count of destination split array + */ +int io_sarrCopy(sarr_t ** __restrict dest, sarr_t * __restrict src); /* * io_sarrGet() - Get element from dynamic split-order array * @arr = Array