blob: 03fb1ead9f0febd83576dcf0e14ad73531528630 [file] [log] [blame]
// 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);
zx_status_t 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_