commit | e0a92a7e56b47af8586b303e33eb5ae413a51a9d | [log] [tgz] |
---|---|---|
author | Amaury Denoyelle <adenoyelle@haproxy.com> | Fri Jul 01 14:45:41 2022 +0200 |
committer | Amaury Denoyelle <adenoyelle@haproxy.com> | Fri Jul 01 15:54:23 2022 +0200 |
tree | f8f0df45ae7dccaf3d29fcaab4683ad956041e6b | |
parent | 36d4b5e31dd872d8bc6bc309f24d0223fae3305d [diff] |
MINOR: ncbuf: implement ncb_is_fragmented() Implement a new status function for ncbuf. It allows to quickly report if a buffer contains data in a fragmented way, i.e. with gaps in between or at start of the buffer. To summarize, a buffer is considered as non-fragmented in the following cases : - a null or empty buffer - a full buffer - a buffer containing exactly one data block at the beginning, following by a gap until the end.