]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ncbuf: implement advance
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 4 May 2022 14:47:09 +0000 (16:47 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 May 2022 16:29:55 +0000 (18:29 +0200)
commitdf25acf47fc0858656b285a42f5e2f37145dab2f
treecd411c0e53b3b4f0ca83b98b678039d3a50b6b37
parentb830f0d8d9956581fb46c041ba05975ef8680d34
MINOR: ncbuf: implement advance

A new function ncb_advance() is implemented. This is used to advance the
buffer head pointer. This will consume the front data while forming a
new gap at the end for future data.

On success NCB_RET_OK is returned. The operation can be rejected if a
too small new gap is formed in front of the buffer.
include/haproxy/ncbuf.h
src/ncbuf.c