]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buf: add b_getblk_ofs() that works relative to area and not head
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Feb 2023 14:53:52 +0000 (15:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commit63242a59c486801499449e07ec6a57885661ae75
tree9bc38485b4717764b1b1618be2ad2d6c122e10aa
parent2f28981546c6f57157d26b46e64d442f97742a31
MINOR: buf: add b_getblk_ofs() that works relative to area and not head

For some concurrently accessed buffers we can't rely on head/data etc,
but sometimes the access patterns guarantees that the buffer contents
are there. Let's implement a function to read contents from a fixed
offset, which never checks head nor data, only the area and its size.
It's the caller's job to get this offset.
include/haproxy/buf.h