[MINOR] buffers: provide more functions to handle buffer data
authorWilly Tarreau <w@1wt.eu>
Mon, 31 Aug 2009 05:37:22 +0000 (07:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 Sep 2009 12:53:46 +0000 (14:53 +0200)
commit2b7addc833bdfae1d6af7694ae055a117ba88538
treeef7771dcfeb75b97193533c51c2e3b2d81309924
parent418fd4722a179b5e74892a9c547386c35171ab67
[MINOR] buffers: provide more functions to handle buffer data

buffer_contig_space(), buffer_contig_data() and buffer_skip()
provide easy methods to extract/insert data from/into a buffer.

buffer_write() and buffer_write_chunk() currently do not check
max_len nor to_forward, so they will quickly become embarrassing
to use or will need an equivalent. The reason is that they are
used to build error messages which currently are not subject to
analysis.
include/proto/buffers.h