]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buffer: Add b_set_data().
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 28 Jun 2018 17:10:25 +0000 (19:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:39 +0000 (16:23 +0200)
commita04e40d5788fde49924f11a68e59fc33a4cb8dfe
treeddeacd5ec2131dfecf31047be46524fda2ca7ae0
parent09138ecc49ceafa51194ea9fab1ceccfbb7249c3
MINOR: buffer: Add b_set_data().

Add a new function that lets you set the amount of input in a buffer.
For now it extends/truncates b->i except if the total length is
below b->o in which case it clears i and adjusts o.
include/common/buf.h