Internal helper for the opt-in parallel download path (Feature A). Splits
[0, size) into n contiguous byte ranges and fetches them concurrently
with one curl handle per part (each carrying its own Range: header) via
curl's multi interface. On success the parts are concatenated in order
and the total size is verified to equal size, so the result is
byte-identical to a single-stream download. Returns FALSE (rather than
erroring) on any partial failure or size mismatch, so the caller can fall
back to single-stream.
.parallelRangedDownload(
url,
destFile,
size,
n,
verbose = getOption("reproducible.verbose", 1)
)TRUE on verified success, otherwise FALSE.
The (already-resolved, range-capable) URL.
The destination file path to assemble into.
Total expected size in bytes (from .probeRange()).
Number of parallel streams (reproducible.parallel.streams).
Numeric verbosity level.