Read available bytes and the end of the buffer and decompress in a singe pass