fn range_to_offset_size<S: RangeBounds<BufferAddress>>( bounds: S, ) -> (BufferAddress, Option<BufferSize>)