code: public void reset() {
          synchronized (zsRef) {
              ensureOpen();
              reset(zsRef.address());
              buf = defaultBuf;
              finished = false;
              needDict = false;
              off = len = 0;
              bytesRead = bytesWritten = 0;
          }
      }
docs: Resets inflater so that a new set of input data can be processed.