mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-09 23:52:52 +02:00
MINOR: ncbmbuf: implement advance operation
Implement ncbmb_advance() function for the ncbmbuf type. This allows to remove bytes in front of the buffer, regardless of the existing gaps. This is implemented by resetting the corresponding bits of the bitmap. As the previous patch, this commit must be backported prior to the fix to come on QUIC CRYPTO frames parsing.
This commit is contained in:
@@ -46,5 +46,6 @@ ncb_sz_t ncbmb_data(const struct ncbmbuf *buf, ncb_sz_t offset);
|
||||
|
||||
enum ncb_ret ncbmb_add(struct ncbmbuf *buf, ncb_sz_t off,
|
||||
const char *data, ncb_sz_t len, enum ncb_add_mode mode);
|
||||
enum ncb_ret ncbmb_advance(struct ncbmbuf *buf, ncb_sz_t adv);
|
||||
|
||||
#endif /* _HAPROXY_NCBMBUF_H */
|
||||
|
||||
Reference in New Issue
Block a user