equal
deleted
inserted
replaced
46 */ |
46 */ |
47 int flib_vector_resize(flib_vector *vec, size_t newSize); |
47 int flib_vector_resize(flib_vector *vec, size_t newSize); |
48 |
48 |
49 /** |
49 /** |
50 * Append the provided data to the end of the vector, enlarging it as required. |
50 * Append the provided data to the end of the vector, enlarging it as required. |
51 * Returns the ammount of data appended, which is either len (success) or 0 (out of memory). |
|
52 * The vector remains unchanged if appending fails. |
51 * The vector remains unchanged if appending fails. |
|
52 * Returns 0 on success. |
53 */ |
53 */ |
54 int flib_vector_append(flib_vector *vec, const void *data, size_t len); |
54 int flib_vector_append(flib_vector *vec, const void *data, size_t len); |
55 |
55 |
56 /** |
56 /** |
57 * Append data from a format string to the buffer (without trailing 0) |
57 * Append data from a format string to the buffer (without trailing 0) |