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

Add length method to RandomAccessInput #12592

Closed
iverase opened this issue Sep 26, 2023 · 0 comments · Fixed by #12594
Closed

Add length method to RandomAccessInput #12592

iverase opened this issue Sep 26, 2023 · 0 comments · Fixed by #12594

Comments

@iverase
Copy link
Contributor

iverase commented Sep 26, 2023

It is currently not possible to read all bytes from a RandomAccessInput without previous knowledge of how many bytes were written. I would like to propose that RandomAccessInput can provide the user the information on how many bytes it contains (similary to IndexInput).

    /** The number of bytes in the file. */
  public long length();
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 a pull request may close this issue.

1 participant