Ai
2 Star 0 Fork 0

mirrors_android_source/bsdiff

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
extents.h 793 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.
#ifndef _BSDIFF_EXTENTS_H_
#define _BSDIFF_EXTENTS_H_
#include <vector>
#include "bsdiff/extents_file.h"
namespace bsdiff {
// Parses a string representation |ex_str| and populates the vector |extents|
// of ex_t. The string is expected to be a comma-separated list of pairs of the
// form "offset:length". An offset may be -1 or a non-negative integer; the
// former indicates a sparse extent (consisting of zeros). A length is a
// positive integer. Returns whether the parsing was successful.
bool ParseExtentStr(const char* ex_str, std::vector<ex_t>* extents);
} // namespace bsdiff
#endif // _BSDIFF_EXTENTS_H_
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

搜索帮助