Searched refs:sink (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/applypatch/ |
D | imgpatch.cpp | 55 const char* deflate_header, SinkFn sink) { in ApplyBSDiffPatchAndStreamOutput() argument 82 &ret, &sink](const uint8_t* data, size_t len) -> size_t { in ApplyBSDiffPatchAndStreamOutput() 103 if (sink(buffer.data(), have) != have) { in ApplyBSDiffPatchAndStreamOutput() 136 size_t patch_size, SinkFn sink) { in ApplyImagePatch() argument 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 184 if (ApplyBSDiffPatch(old_data + src_start, src_len, patch, patch_offset, sink) != 0) { in ApplyImagePatch() 204 if (sink(reinterpret_cast<const unsigned char*>(patch_header + pos), data_len) != data_len) { in ApplyImagePatch() 280 patch_offset, deflate_header, sink)) { in ApplyImagePatch()
|
D | bspatch.cpp | 69 size_t patch_offset, SinkFn sink) { in ApplyBSDiffPatch() argument 74 patch.data.size() - patch_offset, sink); in ApplyBSDiffPatch()
|
D | applypatch.cpp | 367 SinkFn sink = [&patched, &ctx](const unsigned char* data, size_t len) { in GenerateTarget() local 375 result = ApplyBSDiffPatch(source_file.data.data(), source_file.data.size(), patch, 0, sink); in GenerateTarget() 378 ApplyImagePatch(source_file.data.data(), source_file.data.size(), patch, sink, bonus_data); in GenerateTarget()
|
/bootable/recovery/applypatch/include/applypatch/ |
D | imgpatch.h | 27 size_t patch_size, SinkFn sink);
|
D | applypatch.h | 110 size_t patch_offset, SinkFn sink); 117 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink,
|