bipbuffer icon indicating copy to clipboard operation
bipbuffer copied to clipboard

A circular buffer alternative written in C under a BSD license

Results 3 bipbuffer issues
Sort by recently updated
recently updated
newest added

if I have a buff like below: ****12** ^ | A Region B is not used. Now, if I want to offer more than 2 bytes for example 4 bytes...

You don't need this check, you can just do that unconditionally and it'll work in both cases. https://github.com/willemt/bipbuffer/blob/cb7b9ad5a5a41eb35b18a325abc995102851bd8d/bipbuffer.c#L125

Here's a different implementation of bipbup_offer() : - if B is in use, append data there (no change) - if B is unused, and there is enough space after A,...