Bug fix: `IndexStreamBuffer` prematurely throws data-exhaustion error.
- When fewer than the requested number of bytes are read from a stream, keep reading until the stream is actually exhausted.