Home
last modified time | relevance | path

Searched refs:ImageChunk (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h34 class ImageChunk {
41 ImageChunk(int type, size_t start, const std::vector<uint8_t>* file_content, size_t raw_data_len,
72 bool operator==(const ImageChunk& other) const;
73 bool operator!=(const ImageChunk& other) const {
91 bool IsAdjacentNormal(const ImageChunk& other) const;
92 void MergeAdjacentNormal(const ImageChunk& other);
99 static bool MakePatch(const ImageChunk& tgt, const ImageChunk& src,
123 PatchChunk(const ImageChunk& tgt, const ImageChunk& src, std::vector<uint8_t> data);
126 explicit PatchChunk(const ImageChunk& tgt);
129 static bool RawDataIsSmaller(const ImageChunk& tgt, size_t patch_size);
[all …]
/bootable/recovery/applypatch/
Dimgdiff.cpp258 ImageChunk::ImageChunk(int type, size_t start, const std::vector<uint8_t>* file_content, in ImageChunk() function in ImageChunk
269 const uint8_t* ImageChunk::GetRawData() const { in GetRawData()
274 const uint8_t * ImageChunk::DataForPatch() const { in DataForPatch()
281 size_t ImageChunk::DataLengthForPatch() const { in DataLengthForPatch()
288 void ImageChunk::Dump(size_t index) const { in Dump()
293 bool ImageChunk::operator==(const ImageChunk& other) const { in operator ==()
301 void ImageChunk::SetUncompressedData(std::vector<uint8_t> data) { in SetUncompressedData()
305 bool ImageChunk::SetBonusData(const std::vector<uint8_t>& bonus_data) { in SetBonusData()
313 void ImageChunk::ChangeDeflateChunkToNormal() { in ChangeDeflateChunkToNormal()
320 bool ImageChunk::IsAdjacentNormal(const ImageChunk& other) const { in IsAdjacentNormal()
[all …]
/bootable/recovery/tests/unit/host/
Dimgdiff_test.cpp728 std::vector<ImageChunk> ConstructImageChunks( in ConstructImageChunks()
730 std::vector<ImageChunk> chunks; in ConstructImageChunks()
748 std::vector<ImageChunk> tgt_chunks = ConstructImageChunks(content, { { "a", 100 }, in TEST()
761 std::vector<ImageChunk> src_chunks = ConstructImageChunks(content, { { "b", 4096 * 3 }, in TEST()