]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buf: Add function to realign a buffer with a specific head position
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 4 Feb 2021 09:54:37 +0000 (10:54 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 May 2021 08:41:50 +0000 (10:41 +0200)
commit4fc51a73e669fdd479213682ef714c755657a06f
tree5a5cb0b63dcf17235dd4a19cb4647f6aff7663d0
parent7a835f3cb0c5eab84199ad126098af30d94ca226
MINOR: buf: Add function to realign a buffer with a specific head position

b_slow_realign() function may be used to realign a buffer with a given
amount of output data, eventually 0. In such case, the head is set to
0. This function is not designed to be used with input only buffers, like
those used in the muxes. It is the purpose of b_slow_realign_ofs()
function. It does almost the same, realign a buffer. But it do so by setting
the buffer head to a specific offset.
include/haproxy/buf.h