Trim read bytes from buffer while appending
Merge pull request #3 from striker2000/patch-2

Trim read bytes from buffer while appending