mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-11 03:41:00 +01:00
Many ring-based APIs need a tail and a head, with some extra assumption that the user takes care of not filling the ring so that tail==head is unambiguous. Vectors are particularly suited to this usage so here we create 4 functions to create vectors representing free room or data from a ring, as well as updating rings based on a pair of vectors that represents either free space or data.