Lines Matching refs:patch
54 const Value& patch, size_t patch_offset, in ApplyBSDiffPatchAndStreamOutput() argument
113 int bspatch_result = ApplyBSDiffPatch(src_data, src_len, patch, patch_offset, compression_sink); in ApplyBSDiffPatchAndStreamOutput()
137 Value patch(Value::Type::BLOB, in ApplyImagePatch() local
139 return ApplyImagePatch(old_data, old_size, patch, sink, nullptr); in ApplyImagePatch()
142 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink, in ApplyImagePatch() argument
144 if (patch.data.size() < 12) { in ApplyImagePatch()
151 const char* const patch_header = patch.data.data(); in ApplyImagePatch()
161 if (pos + 4 > patch.data.size()) { in ApplyImagePatch()
171 if (pos > patch.data.size()) { in ApplyImagePatch()
184 if (ApplyBSDiffPatch(old_data + src_start, src_len, patch, patch_offset, sink) != 0) { in ApplyImagePatch()
193 if (pos > patch.data.size()) { in ApplyImagePatch()
200 if (pos + data_len > patch.data.size()) { in ApplyImagePatch()
215 if (pos > patch.data.size()) { in ApplyImagePatch()
279 if (!ApplyBSDiffPatchAndStreamOutput(expanded_source.data(), expanded_len, patch, in ApplyImagePatch()