commit | 4fc51a73e669fdd479213682ef714c755657a06f | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu Feb 04 10:54:37 2021 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Tue May 25 10:41:50 2021 +0200 |
tree | 5a5cb0b63dcf17235dd4a19cb4647f6aff7663d0 | |
parent | 7a835f3cb0c5eab84199ad126098af30d94ca226 [diff] |
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.