#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/zucchini/zucchini_commands.h"
#include <stddef.h>
#include <stdint.h>
#include <ostream>
#include <string>
#include <utility>
#include "base/command_line.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/memory_mapped_file.h"
#include "base/logging.h"
#include "components/zucchini/buffer_view.h"
#include "components/zucchini/crc32.h"
#include "components/zucchini/encoded_view.h"
#include "components/zucchini/image_index.h"
#include "components/zucchini/io_utils.h"
#include "components/zucchini/mapped_file.h"
#include "components/zucchini/patch_writer.h"
#include "components/zucchini/suffix_array.h"
#include "components/zucchini/zucchini_integration.h"
#include "components/zucchini/zucchini_tools.h"
namespace {
kStatusFileReadError;
kStatusSuccess;
constexpr char kSwitchDump[] = …;
constexpr char kSwitchImpose[] = …;
constexpr char kSwitchKeep[] = …;
constexpr char kSwitchRaw[] = …;
class WrappedMappedFileReader : public zucchini::MappedFileReader { … };
}
zucchini::status::Code MainGen(MainParams params) { … }
zucchini::status::Code MainApply(MainParams params) { … }
zucchini::status::Code MainVerify(MainParams params) { … }
zucchini::status::Code MainRead(MainParams params) { … }
zucchini::status::Code MainDetect(MainParams params) { … }
zucchini::status::Code MainMatch(MainParams params) { … }
zucchini::status::Code MainCrc32(MainParams params) { … }
zucchini::status::Code MainSuffixArray(MainParams params) { … }