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 :)
Hi @Geal ,
The
consumemethod shifts data if >= half the buffer. I'm using thecircularcrate 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_noshiftor something ilke that) which just addscntwithout shifting data ? I can provide a patch :)