mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-11 23:19:00 +08:00
9a70abef24
CL: Add mbuf_append_and_free() and mbuf_move() PUBLISHED_FROM=bdf73906dd93b2ebeace160596508e15480b54b4
360 B
360 B
title | decl_name | symbol_kind | signature |
---|---|---|---|
mbuf_append_and_free() | mbuf_append_and_free | func | size_t mbuf_append_and_free(struct mbuf *, void *data, size_t data_size); |
Appends data to the Mbuf and frees it (data must be heap-allocated).
Returns the number of bytes appended or 0 if out of memory. data is freed irrespective of return value.