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 skip() to ZstdBufferDecompressingStream #259

Open
divijvaidya opened this issue Apr 26, 2023 · 1 comment
Open

Add skip() to ZstdBufferDecompressingStream #259

divijvaidya opened this issue Apr 26, 2023 · 1 comment

Comments

@divijvaidya
Copy link
Contributor

divijvaidya commented Apr 26, 2023

Users of ZstdBufferDecompressingStream may have a requirement to skip reading some uncompressed bytes. A similar method exists in ZstdInputStream.

The skip() method should:

  1. Use a BufferPool if provided.
  2. Allocate buffer only once from the BufferSupplier.
  3. Returns the number of bytes skipped.

The interface should be modeled similar to InputStream#skip(long n).

@luben
Copy link
Owner

luben commented Oct 1, 2023

Sounds reasonable, contributions welcome.

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

No branches or pull requests

2 participants