blob: c1e2010a6f0befd5cd52d1f9653e1bb581e84528 [file] [log] [blame]
// Copyright 2023 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_LIB_PAVER_SPARSE_H_
#define SRC_STORAGE_LIB_PAVER_SPARSE_H_
#include <lib/zx/vmo.h>
#include <cstddef>
#include "src/storage/lib/paver/device-partitioner.h"
#include "src/storage/lib/paver/partition-client.h"
namespace paver {
/// Writes the Android Sparse-formatted image from `payload_vmo` into `partition`.
zx::result<> WriteSparse(PartitionClient& partition, const PartitionSpec& spec, zx::vmo payload_vmo,
size_t payload_size);
} // namespace paver
#endif // SRC_STORAGE_LIB_PAVER_SPARSE_H_