Read until all bytes needed are read or EOF

https://github.com/xerial/snappy-java/issues/62