commit | a04e40d5788fde49924f11a68e59fc33a4cb8dfe | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Thu Jun 28 19:10:25 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jul 19 16:23:39 2018 +0200 |
tree | ddeacd5ec2131dfecf31047be46524fda2ca7ae0 | |
parent | 09138ecc49ceafa51194ea9fab1ceccfbb7249c3 [diff] |
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.