MEDIUM: buffers: add some new primitives and rework existing ones
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Nov 2011 19:33:58 +0000 (20:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Nov 2011 20:57:29 +0000 (21:57 +0100)
commit4b517ca93aaaead8aa6143aa2836dc96417653c6
tree5d3dd1885aa5ccb40d82271b2f6536b8c8da3ab7
parent0f99e349780083834afc188b499357c87d5b04fd
MEDIUM: buffers: add some new primitives and rework existing ones

A number of primitives were missing for buffer management, and some
of them were particularly awkward to use. Specifically, the functions
used to compute free space could not always be used depending what was
wrapping in the buffers. Some documentation has been added about how
the buffers work and their properties. Some functions are still missing
such as a buffer replacement which would support wrapping buffers.
include/proto/buffers.h
include/types/buffers.h
src/buffers.c