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 method to consume bytes without shifting buffer ? #2

Open
chifflier opened this issue Jun 5, 2019 · 2 comments
Open

Add method to consume bytes without shifting buffer ? #2

chifflier opened this issue Jun 5, 2019 · 2 comments

Comments

@chifflier
Copy link
Contributor

Hi @Geal ,

The consume method shifts data if >= half the buffer. I'm using the circular crate as a fixed-position buffer (for multi-threading) and need to control when data is moved.

Would you be OK for adding a new method (consume_noshift or something ilke that) which just adds cnt without shifting data ? I can provide a patch :)

@Geal
Copy link
Member

Geal commented Jun 6, 2019 via email

@joeri
Copy link

joeri commented Sep 26, 2022

Unless I'm missing something this was added in 0.3 so this issue can be closed

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

3 participants