commit | 4fe7d8a5b28f98b8225fa858ba83d328edc1123d | [log] [tgz] |
---|---|---|
author | Frédéric Lécaille <flecaille@haproxy.com> | Fri Mar 04 15:38:51 2022 +0100 |
committer | Amaury Denoyelle <adenoyelle@haproxy.com> | Fri Mar 04 17:47:32 2022 +0100 |
tree | 46576138d487ee9dbde319450b4853a0cb8590ab | |
parent | 9777ead2ed7c16c67eee4737468332ed4dcd9ba8 [diff] |
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.