Ai
2 Star 0 Fork 0

mirrors_android_source/bsdiff

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bspatch_main.cc 784 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alex Deymo 提交于 2017-03-03 08:10 +08:00 . Update Makefile to build shared libraries.
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <err.h>
#include <stdlib.h>
#include "bsdiff/bspatch.h"
#define USAGE_TEMPLATE_STR \
"usage: %s oldfile newfile patchfile [old-extents new-extents]\n" \
"with extents taking the form \"off_1:len_1,...,off_n:len_n\"\n"
int main(int argc, char* argv[]) {
const char* old_extents = NULL;
const char* new_extents = NULL;
if ((argc != 6) && (argc != 4))
errx(1, USAGE_TEMPLATE_STR, argv[0]);
if (argc == 6) {
old_extents = argv[4];
new_extents = argv[5];
}
return bsdiff::bspatch(argv[1], argv[2], argv[3], old_extents, new_extents);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_android_source/bsdiff.git
git@gitee.com:mirrors_android_source/bsdiff.git
mirrors_android_source
bsdiff
bsdiff
main

搜索帮助