Merge "Use SuffixArrayIndexInterface opaque type instead of the underlying data pointer."

This commit is contained in:
Treehugger Robot
2017-10-24 17:20:14 +00:00
committed by Gerrit Code Review
3 changed files with 11 additions and 8 deletions

View File

@@ -24,7 +24,7 @@
#include <string>
#include <vector>
#include <bsdiff.h>
#include <bsdiff/bsdiff.h>
#include <ziparchive/zip_archive.h>
#include <zlib.h>
@@ -98,7 +98,8 @@ class ImageChunk {
* repeatedly, pass nullptr if not needed.
*/
static bool MakePatch(const ImageChunk& tgt, const ImageChunk& src,
std::vector<uint8_t>* patch_data, saidx_t** bsdiff_cache);
std::vector<uint8_t>* patch_data,
bsdiff::SuffixArrayIndexInterface** bsdiff_cache);
private:
const uint8_t* GetRawData() const;