@Override
  public boolean needsInput() {
    return inBuf.position() == 0;
  }
Hadoop decompressor glue for Xerial Snappy.
hbase-compression/hbase-compression-snappy/src/main/java/org/apache/hadoop/hbase/io/compress/xerial/SnappyDecompressor.java