Lines Matching refs:patch
59 Buffer* patch) { in CreatePatch() argument
74 patch->resize(kMagicLength + sizeof(header_size) + header_size + in CreatePatch()
77 memcpy(patch->data() + offset, kMagic, kMagicLength); in CreatePatch()
82 memcpy(patch->data() + offset, &be_header_size, sizeof(be_header_size)); in CreatePatch()
86 header.SerializeToArray(patch->data() + offset, header_size)); in CreatePatch()
89 memcpy(patch->data() + offset, bsdiff_patch.data(), bsdiff_patch.size()); in CreatePatch()
91 if (bsdiff_patch.size() > patch->size()) { in CreatePatch()
105 Buffer* patch) { in PuffDiff() argument
150 src_puff_buffer.size(), dst_puff_buffer.size(), patch)); in PuffDiff()
160 Buffer* patch) { in PuffDiff() argument
163 compressors, tmp_filepath, patch); in PuffDiff()
171 Buffer* patch) { in PuffDiff() argument
175 tmp_filepath, patch); in PuffDiff()