Lines Matching refs:patch
58 ScopedTempFile patch; in StoreDstCompressedFileInfo() local
64 patch.path().c_str(), in StoreDstCompressedFileInfo()
68 << utils::FileSize(patch.path()); in StoreDstCompressedFileInfo()
70 TEST_AND_RETURN_FALSE(utils::ReadFile(patch.path(), &patch_content)); in StoreDstCompressedFileInfo()
90 ScopedTempFile patch; in TryBsdiff() local
93 bsdiff::BsdiffPatchWriter patch_writer(patch.path(), in TryBsdiff()
103 TEST_AND_RETURN_FALSE(utils::ReadFile(patch.path(), &bsdiff_delta)); in TryBsdiff()
125 Blob patch(kLz4diffHeaderSize); in ConstructLz4diffPatch() local
126 std::memcpy(patch.data(), kLz4diffMagic.data(), kLz4diffMagic.size()); in ConstructLz4diffPatch()
127 *reinterpret_cast<uint32_t*>(patch.data() + kLz4diffMagic.size()) = in ConstructLz4diffPatch()
132 *reinterpret_cast<uint32_t*>(patch.data() + kLz4diffMagic.size() + 4) = in ConstructLz4diffPatch()
134 patch.insert(patch.end(), serialized_pb.begin(), serialized_pb.end()); in ConstructLz4diffPatch()
135 patch.insert(patch.end(), inner_patch.begin(), inner_patch.end()); in ConstructLz4diffPatch()
137 *output = std::move(patch); in ConstructLz4diffPatch()