Fix for the isEof function when _byteOffset is not 0

Otherwise it doesn't recognize and of the stream
Merge pull request #6 from sergeypayu/master

Fix for the isEof function when _byteOffset is not 0