Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range to end of file #7

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Range to end of file #7

merged 2 commits into from
Nov 4, 2024

Conversation

mbarbin
Copy link
Owner

@mbarbin mbarbin commented Nov 4, 2024

Fixed

  • Fix Offset.to_position to allow the end-of-file offset instead of raising.

The end-of-file position file.length is now purposely allowed in order for the resulting position to be used as stop value for a range covering the file until its last character (which may occasionally be useful).

@mbarbin mbarbin merged commit a994fd6 into main Nov 4, 2024
6 checks passed
@mbarbin mbarbin deleted the range-to-end-of-file branch November 4, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant