]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor the isc_buffer_{get,put}uintN, add isc_buffer_peekuintN
authorOndřej Surý <ondrej@isc.org>
Thu, 15 Dec 2022 11:38:31 +0000 (12:38 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 20 Dec 2022 18:13:48 +0000 (19:13 +0100)
commit2a94123d5bcca41da1730af6b13cb922eb8e2ded
tree67ff140b092af365c73ed03a583a0c470089092b
parenta1d45685e605d535770d0c5eecaab86a2be6a7dc
Refactor the isc_buffer_{get,put}uintN, add isc_buffer_peekuintN

The Stream DNS implementation needs a peek methods that read the value
from the buffer, but it doesn't advance the current position.  Add
isc_buffer_peekuintX methods, refactor the isc_buffer_{get,put}uintN
methods to modern integer types, and move the isc_buffer_getuintN to the
header as static inline functions.
lib/isc/buffer.c
lib/isc/include/isc/buffer.h
lib/ns/client.c
tests/isc/buffer_test.c