bl
bl copied to clipboard
Added join function
Added join function defragments BufferList items into one big buffer.
OK, so this is essentially just a bare slice() where you're mutating an existing instance rather than returning a new one (or a Buffer). It feels a little like API fluff, although there is that minor difference in the mutation which is currently not possible.
What I'd like to know is what the use-case for this is? Why is fred.join() superior to fred = BufferList(fred.slice())? What are the scenarios where you want to keep a BufferList reference that's flattened internally and not just use a Buffer?
Needs linting, a test or three, and README.md additions.