@Override
  public CompressionOutputStream createOutputStream(OutputStream out, Compressor c)
    throws IOException {
    return new BlockCompressorStream(out, c, bufferSize,
      Snappy.maxCompressedLength(bufferSize) - bufferSize); // overhead only
  }
Return true if the native shared libraries were loaded; false otherwise.
hbase-compression/hbase-compression-snappy/src/main/java/org/apache/hadoop/hbase/io/compress/xerial/SnappyCodec.java