blob: aea8aa47bd7c8cc63e532beb3c113eb8bbb6cff1 [file] [log] [blame] [edit]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_STORAGE_TOOLS_BLOBFS_COMPRESSION_BLOBFS_COMPRESSION_H_
#define SRC_STORAGE_TOOLS_BLOBFS_COMPRESSION_BLOBFS_COMPRESSION_H_
#include "src/lib/chunked-compression/chunked-compressor.h"
namespace blobfs_compress {
chunked_compression::CompressionParams ComputeDefaultBlobfsCompressionParams(size_t sz);
int BlobfsCompress(const uint8_t* src, size_t src_sz, uint8_t* dest_write_buf,
size_t* out_compressed_size, chunked_compression::CompressionParams params);
} // namespace blobfs_compress
#endif // SRC_STORAGE_TOOLS_BLOBFS_COMPRESSION_BLOBFS_COMPRESSION_H_