pub fn remote_fetch_end_position(
start_position: u32,
segment_size: u32,
max_bytes: u32,
) -> Option<u32>Expand description
Compute the inclusive end of a capped remote-segment fetch.
A zero cap means read to the segment end. A finite end exists only when the exclusive mathematical end stays strictly inside the segment.