[MEDIUM] buffers: provide new buffer_feed*() function
authorWilly Tarreau <w@1wt.eu>
Mon, 31 Aug 2009 06:09:57 +0000 (08:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 Sep 2009 12:53:46 +0000 (14:53 +0200)
commitaeac31979e1042591c0992a358373eb22c44d607
tree93d8d0b24cc81652a8f41df510111afff43c79da
parent2b7addc833bdfae1d6af7694ae055a117ba88538
[MEDIUM] buffers: provide new buffer_feed*() function

This functions act like their buffer_write*() counter-parts,
except that they're specifically designed to be used from a
stream interface handler, as they carefully check size limits
and automatically advance the read pointer depending on the
to_forward attribute.

buffer_feed_chunk() is an inline calling buffer_feed() as both
are the sames. For this reason, buffer_write_chunk() has also
been turned into an inline which calls buffer_write().
include/proto/buffers.h
src/buffers.c