Searched refs:patch_data (Results 1 – 9 of 9) sorted by relevance
/external/bsdiff/ |
D | patch_reader_unittest.cc | 58 std::vector<uint8_t>* patch_data) { in ConstructPatchHeader() argument 59 EXPECT_EQ(static_cast<size_t>(8), patch_data->size()); in ConstructPatchHeader() 65 std::copy(buf, buf + sizeof(buf), std::back_inserter(*patch_data)); in ConstructPatchHeader() 68 void ConstructPatchData(std::vector<uint8_t>* patch_data) { in ConstructPatchData() argument 71 new_file_size_, patch_data); in ConstructPatchData() 76 std::back_inserter(*patch_data)); in ConstructPatchData() 79 std::back_inserter(*patch_data)); in ConstructPatchData() 82 std::back_inserter(*patch_data)); in ConstructPatchData() 85 void VerifyPatch(const std::vector<uint8_t>& patch_data) { in VerifyPatch() argument 87 EXPECT_TRUE(patch_reader.Init(patch_data.data(), patch_data.size())); in VerifyPatch() [all …]
|
D | patch_reader.cc | 21 bool BsdiffPatchReader::Init(const uint8_t* patch_data, size_t patch_size) { in Init() argument 40 if (memcmp(patch_data, kLegacyMagicHeader, 8) == 0) { in Init() 44 } else if (memcmp(patch_data, kBSDF2MagicHeader, 5) == 0) { in Init() 51 uint8_t type = patch_data[i]; in Init() 71 int64_t ctrl_len = ParseInt64(patch_data + 8); in Init() 72 int64_t diff_len = ParseInt64(patch_data + 16); in Init() 73 int64_t signed_newsize = ParseInt64(patch_data + 24); in Init() 95 if (!ctrl_stream_->SetInputData(const_cast<uint8_t*>(patch_data) + offset, in Init() 102 if (!diff_stream_->SetInputData(const_cast<uint8_t*>(patch_data) + offset, in Init() 109 if (!extra_stream_->SetInputData(const_cast<uint8_t*>(patch_data) + offset, in Init()
|
D | bspatch.cc | 179 const uint8_t* patch_data, in bspatch() argument 222 uint64_t newsize = ParseInt64(patch_data + 24); in bspatch() 226 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch() 233 const uint8_t* patch_data, in bspatch() argument 239 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch() 246 const uint8_t* patch_data, in bspatch() argument 249 if (!patch_reader.Init(patch_data, patch_size)) { in bspatch()
|
D | patch_reader.h | 31 bool Init(const uint8_t* patch_data, size_t patch_size);
|
/external/bsdiff/include/bsdiff/ |
D | bspatch.h | 29 const uint8_t* patch_data, 37 const uint8_t* patch_data, 44 const uint8_t* patch_data,
|
/external/toybox/android/linux/generated/ |
D | globals.h | 1381 struct patch_data { struct 1711 struct patch_data patch;
|
/external/toybox/android/device/generated/ |
D | globals.h | 1381 struct patch_data { struct 1711 struct patch_data patch;
|
/external/toybox/android/mac/generated/ |
D | globals.h | 1381 struct patch_data { struct 1711 struct patch_data patch;
|
/external/perfetto/src/tracing/core/ |
D | tracing_service_impl.cc | 2670 const std::string& patch_data = patch.data(); in ApplyChunkPatches() local 2671 if (patch_data.size() != patches[i].data.size()) { in ApplyChunkPatches() 2674 producer_id_trusted, patch_data.size()); in ApplyChunkPatches() 2679 memcpy(&patches[i].data[0], patch_data.data(), patches[i].data.size()); in ApplyChunkPatches()
|