memcpy(c->buffer, buf, size); c->buffer_ptr = c->buffer; c->buffer_end = c->buffer + size;
memcpy(c->buffer_end, buf, size); c->buffer_end += size;
static void http_write_packet(void *opaque,                               unsigned char *buf, int size){    HTTPContext *c = opaque;    if (size > IOBUFFER_MAX_SIZE)        abort();    memcpy(c->buffer, buf, size);    c->buffer_ptr = c->buffer;    c->buffer_end = c->buffer + size;}