felixge/node-buffy — pull request #2 by bkw (2012-10-12 18:38:08+00:00)
Title: Better buffer reuse

here is the proper fix for #1 based on your idea (refilling the buffer from the right).
Along the way I found the reason for my buffer corruption; Reader.buffer returns a copy now, not a slice that my harm the internal buffer when messed with.