Searched refs:patch_data (Results 1 – 7 of 7) sorted by relevance
/external/bsdiff/ |
D | patch_reader_unittest.cc | 54 void ConstructPatchData(std::vector<uint8_t>* patch_data) { in ConstructPatchData() argument 55 EXPECT_EQ(static_cast<size_t>(8), patch_data->size()); in ConstructPatchData() 61 std::copy(buf, buf + sizeof(buf), std::back_inserter(*patch_data)); in ConstructPatchData() 66 std::back_inserter(*patch_data)); in ConstructPatchData() 69 std::back_inserter(*patch_data)); in ConstructPatchData() 72 std::back_inserter(*patch_data)); in ConstructPatchData() 75 void VerifyPatch(const std::vector<uint8_t>& patch_data) { in VerifyPatch() argument 77 EXPECT_TRUE(patch_reader.Init(patch_data.data(), patch_data.size())); in VerifyPatch() 117 std::vector<uint8_t> patch_data; in TEST_F() local 119 std::back_inserter(patch_data)); in TEST_F() [all …]
|
D | patch_reader.cc | 20 bool BsdiffPatchReader::Init(const uint8_t* patch_data, size_t patch_size) { in Init() argument 39 if (memcmp(patch_data, kLegacyMagicHeader, 8) == 0) { in Init() 43 } else if (memcmp(patch_data, kBSDF2MagicHeader, 5) == 0) { in Init() 50 uint8_t type = patch_data[i]; in Init() 70 int64_t ctrl_len = ParseInt64(patch_data + 8); in Init() 71 int64_t diff_len = ParseInt64(patch_data + 16); in Init() 72 int64_t signed_newsize = ParseInt64(patch_data + 24); in Init() 92 if (!ctrl_stream_->SetInputData(const_cast<uint8_t*>(patch_data) + offset, in Init() 99 if (!diff_stream_->SetInputData(const_cast<uint8_t*>(patch_data) + offset, in Init() 106 if (!extra_stream_->SetInputData(const_cast<uint8_t*>(patch_data) + offset, in Init()
|
D | bspatch.cc | 178 const uint8_t* patch_data, in bspatch() argument 221 uint64_t newsize = ParseInt64(patch_data + 24); in bspatch() 225 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch() 232 const uint8_t* patch_data, in bspatch() argument 238 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch() 245 const uint8_t* patch_data, in bspatch() argument 248 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/perfetto/src/tracing/core/ |
D | service_impl.cc | 937 const std::string& patch_data = patch.data(); in ApplyChunkPatches() local 938 if (patch_data.size() != patches[i].data.size()) { in ApplyChunkPatches() 941 producer_id_trusted, patch_data.size()); in ApplyChunkPatches() 945 memcpy(&patches[i].data[0], patch_data.data(), patches[i].data.size()); in ApplyChunkPatches()
|
/external/toybox/generated/ |
D | globals.h | 1227 struct patch_data { struct 1540 struct patch_data patch;
|