]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buf: add b_rel_ofs() to turn an absolute offset into a relative one
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Feb 2023 08:52:58 +0000 (09:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commitc5004ccb3680847cf0fc42a2fd7afc9df32c64d5
tree661ef3231002067f6b7778fd4e79ee6536b8b2e2
parent15e47b6a5970ad90f9e4ae53f157863aac0fa23a
MINOR: buf: add b_rel_ofs() to turn an absolute offset into a relative one

It basically does the opposite of b_peek_ofs(). If x=b_peek_ofs(y), then
y=b_rel_ofs(x).
include/haproxy/buf.h