Home
last modified time | relevance | path

Searched refs:sink (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/applypatch/
Dbspatch.cpp69 size_t patch_offset, SinkFn sink, SHA_CTX* ctx) { in ApplyBSDiffPatch() argument
70 auto sha_sink = [&sink, &ctx](const uint8_t* data, size_t len) { in ApplyBSDiffPatch()
71 len = sink(data, len); in ApplyBSDiffPatch()
Dimgpatch.cpp54 const char* deflate_header, SinkFn sink, SHA_CTX* ctx) { in ApplyBSDiffPatchAndStreamOutput() argument
80 &ret, &ctx, &sink](const uint8_t* data, size_t len) -> size_t { in ApplyBSDiffPatchAndStreamOutput()
101 if (sink(buffer.data(), have) != have) { in ApplyBSDiffPatchAndStreamOutput()
136 size_t patch_size, SinkFn sink) { in ApplyImagePatch() argument
138 return ApplyImagePatch(old_data, old_size, patch, sink, nullptr, nullptr); in ApplyImagePatch()
141 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink, in ApplyImagePatch() argument
183 if (ApplyBSDiffPatch(old_data + src_start, src_len, patch, patch_offset, sink, ctx) != 0) { in ApplyImagePatch()
204 if (sink(reinterpret_cast<const unsigned char*>(patch_header + pos), data_len) != data_len) { in ApplyImagePatch()
279 patch_offset, deflate_header, sink, ctx)) { in ApplyImagePatch()
Dapplypatch.cpp630 SinkFn sink = [&memory_sink_str](const unsigned char* data, size_t len) { in GenerateTarget() local
641 ApplyBSDiffPatch(source_file.data.data(), source_file.data.size(), *patch, 0, sink, &ctx); in GenerateTarget()
643 result = ApplyImagePatch(source_file.data.data(), source_file.data.size(), *patch, sink, &ctx, in GenerateTarget()
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h69 size_t patch_offset, SinkFn sink, SHA_CTX* ctx);
76 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink,
Dimgpatch.h27 size_t patch_size, SinkFn sink);