v2.1.0-rc (#63)

Reviewed-on: #63
This commit is contained in:
sgraves committed 2025-10-16 17:23:36 -05:00
1 parent 5ab7301cbe
commit f198cd49ee
471 files changed
+24173 -9459

No files matched your search

+4 -3
View File
@@ -35,9 +35,10 @@ struct result final {
using retryable_action_t = std::function<bool()>;
[[nodiscard]] inline constexpr auto
calculate_read_size(std::uint64_t total_size, std::size_t read_size,
std::uint64_t offset) -> std::size_t {
[[nodiscard]] constexpr auto calculate_read_size(std::uint64_t total_size,
std::size_t read_size,
std::uint64_t offset)
-> std::size_t {
return static_cast<std::size_t>(
((offset + read_size) > total_size)
? ((offset < total_size) ? total_size - offset : 0U)