lib/util: inline iov_{buflen,buf,advance}()
commita9c53b9eff605d67880ae1a333b95d2f6f921d1a
authorStefan Metzmacher <metze@samba.org>
Tue, 25 Apr 2023 17:55:16 +0000 (25 17:55 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 6 Sep 2023 19:30:35 +0000 (6 19:30 +0000)
treee7cdb2d44584a4c014c3f253a9407202120c661a
parent76f9a41fa67da9a9c761855e6a745700a1115506
lib/util: inline iov_{buflen,buf,advance}()

The main reason for this change was the use of
iov_advance() in the next commits in
source3/smbd/smb2_server.c

And the function calls to iov_advance() showed up
in profiling with callgrind.

While there iov_buf() and iov_buflen() are moved as
well, as they are also used there.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/iov_buf.c [copied from lib/util/iov_buf.h with 76% similarity]
lib/util/iov_buf.h [copied from lib/util/iov_buf.c with 88% similarity]