project_files/frontlib/util/buffer.h
changeset 7275 15f722e0b96f
parent 7271 5608ac657362
child 7314 6171f0bad318
equal deleted inserted replaced
7273:8eed495fd8da 7275:15f722e0b96f
    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)