diff -r 240620f46dd7 -r 613998625a3c project_files/frontlib/util/buffer.h --- a/project_files/frontlib/util/buffer.h Fri Jun 15 19:57:25 2012 +0200 +++ b/project_files/frontlib/util/buffer.h Tue Jun 19 21:17:05 2012 +0200 @@ -41,6 +41,13 @@ void flib_vector_destroy(flib_vector *vec); /** + * Resize the vector. This changes the size, and ensures the capacity is large enough to + * for the new size. Can also free memory if the new size is smaller. There is no guarantee + * about the contents of extra memory. + */ +int flib_vector_resize(flib_vector *vec, size_t newSize); + +/** * Append the provided data to the end of the vector, enlarging it as required. * Returns the ammount of data appended, which is either len (success) or 0 (out of memory). * The vector remains unchanged if appending fails.