]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Add quic_max_int_by_size() function
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 4 Mar 2022 14:38:51 +0000 (15:38 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 4 Mar 2022 16:47:32 +0000 (17:47 +0100)
commit4fe7d8a5b28f98b8225fa858ba83d328edc1123d
tree46576138d487ee9dbde319450b4853a0cb8590ab
parent9777ead2ed7c16c67eee4737468332ed4dcd9ba8
MINOR: quic: Add quic_max_int_by_size() function

This function returns the maximum integer which may be encoded with a number of
bytes passed as parameter. Useful to precisely compute the number of bytes which
may used to fulfill a buffer with lengths as QUIC enteger encoded prefixes for the
number of following bytes.
include/haproxy/quic_enc.h