#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/zucchini/zucchini_apply.h"
#include <algorithm>
#include <map>
#include <memory>
#include <utility>
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
#include "base/ranges/algorithm.h"
#include "components/zucchini/disassembler.h"
#include "components/zucchini/element_detection.h"
#include "components/zucchini/equivalence_map.h"
#include "components/zucchini/image_index.h"
namespace zucchini {
bool ApplyEquivalenceAndExtraData(ConstBufferView old_image,
const PatchElementReader& patch_reader,
MutableBufferView new_image) { … }
bool ApplyRawDelta(const PatchElementReader& patch_reader,
MutableBufferView new_image) { … }
bool ApplyReferencesCorrection(ExecutableType exe_type,
ConstBufferView old_image,
const PatchElementReader& patch,
MutableBufferView new_image) { … }
bool ApplyElement(ExecutableType exe_type,
ConstBufferView old_image,
const PatchElementReader& patch_reader,
MutableBufferView new_image) { … }
status::Code ApplyBuffer(ConstBufferView old_image,
const EnsemblePatchReader& patch_reader,
MutableBufferView new_image) { … }
}