Boost C++ Libraries

PrevUpHomeNext

Function coalesce_ranges

boost::taar::coalesce_ranges — Sort ranges and merge the ones that overlap or touch.

Synopsis

// In header: <boost/taar/core/byte_range.hpp>


std::vector< byte_range > coalesce_ranges(std::vector< byte_range > ranges);

Description

0-9,5-14 becomes 0-14 and 0-4,5-9 becomes 0-9, which RFC 9110 allows a server to do before answering multipart/byteranges.


PrevUpHomeNext