blob: f85c017f6222a80f1d43a0656df85f87b2527a24 [file]
// Copyright 2024 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UPDATE_ENGINE_PAYLOAD_GENERATOR_ZSTD_H_
#define UPDATE_ENGINE_PAYLOAD_GENERATOR_ZSTD_H_
#include <brillo/secure_blob.h>
namespace chromeos_update_engine {
// Compresses the input buffer |in| into |out| with zstd.
bool ZstdCompress(const brillo::Blob& in, brillo::Blob* out);
// Compresses the input buffer |in| into |out| with zstd and long distance
// matching with increased window.
bool ZstdCompressIncreasedWindow(const brillo::Blob& in, brillo::Blob* out);
} // namespace chromeos_update_engine
#endif // UPDATE_ENGINE_PAYLOAD_GENERATOR_ZSTD_H_